-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Fix bug in point in time response #131391
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
Conversation
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
Hi @benchaplin, I've created a changelog YAML for you. |
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.
LGTM, thanks a lot for adding the test here as well.
} | ||
|
||
String encodedId = Base64.getUrlEncoder().encodeToString(BytesReference.toBytes(pointInTimeId)); | ||
BytesReference expected = new BytesArray(String.format(""" |
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.
Just to save you clicking through to the CI failures:
Forbidden method invocation: java.lang.String#format(java.lang.String,java.lang.Object[]) [Uses default locale]
in org.elasticsearch.action.search.OpenPointInTimeResponseTests (OpenPointInTimeResponseTests.java:43)
I always forget to add the locale as well.
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.
Ah thank you!
Correct response which had swapped "skipped" and "failed" shard counts.
Correct response which had swapped "skipped" and "failed" shard counts.
Correct response which had swapped "skipped" and "failed" shard counts.
Correct response which had swapped "skipped" and "failed" shard counts.
Resolves #131026.
The failed and skipped parameters are swapped.
See:
elasticsearch/server/src/main/java/org/elasticsearch/rest/action/RestActions.java
Lines 80 to 88 in 8bcb0c4