-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEST] Cover custom sorting and routing in randomized testing #120584
base: main
Are you sure you want to change the base?
Conversation
assertOK(response); | ||
var responseBody = entityAsMap(response); | ||
assertThat("errors in baseline bulk response:\n " + responseBody, responseBody.get("errors"), equalTo(false)); | ||
return responseBody; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this logic feels out of place here, specific to tests using bulk indexing.. It probably belongs more to a sibling of ReindexChallengeRestIT
, like BulkChallengeRestIT
. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went ahead with this refactoring, ptal.
… logsdb/random-test-routing
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
Requires some refactoring due to the fact that, with routing on sort fields, ids are auto-generated. Since some tests compare base and contender results using doc ids, the auto-generated id from contender needs to be used when indexing docs on baseline side.
Related to #109334