Skip to content

Conversation

benchaplin
Copy link
Contributor

Resolves #131026.

The failed and skipped parameters are swapped.

See:

public static XContentBuilder buildBroadcastShardsHeader(
XContentBuilder builder,
Params params,
int total,
int successful,
int skipped,
int failed,
ShardOperationFailedException[] shardFailures
) throws IOException {

@benchaplin benchaplin added >bug auto-backport Automatically create backport pull requests when merged Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations v9.2.0 v9.1.1 v8.19.1 v9.0.5 v8.18.5 labels Jul 16, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine
Copy link
Collaborator

Hi @benchaplin, I've created a changelog YAML for you.

Copy link
Member

@cbuescher cbuescher left a 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("""
Copy link
Member

@cbuescher cbuescher Jul 17, 2025

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thank you!

@benchaplin benchaplin merged commit f739673 into elastic:main Jul 17, 2025
33 checks passed
benchaplin added a commit to benchaplin/elasticsearch that referenced this pull request Jul 17, 2025
Correct response which had swapped "skipped" and "failed" shard counts.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.1
8.19
9.0
8.18
benchaplin added a commit to benchaplin/elasticsearch that referenced this pull request Jul 17, 2025
Correct response which had swapped "skipped" and "failed" shard counts.
benchaplin added a commit to benchaplin/elasticsearch that referenced this pull request Jul 17, 2025
Correct response which had swapped "skipped" and "failed" shard counts.
benchaplin added a commit to benchaplin/elasticsearch that referenced this pull request Jul 17, 2025
Correct response which had swapped "skipped" and "failed" shard counts.
elasticsearchmachine pushed a commit that referenced this pull request Jul 17, 2025
Correct response which had swapped "skipped" and "failed" shard counts.
elasticsearchmachine pushed a commit that referenced this pull request Jul 17, 2025
Correct response which had swapped "skipped" and "failed" shard counts.
elasticsearchmachine pushed a commit that referenced this pull request Jul 17, 2025
Correct response which had swapped "skipped" and "failed" shard counts.
elasticsearchmachine pushed a commit that referenced this pull request Jul 18, 2025
Correct response which had swapped "skipped" and "failed" shard counts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.18.5 v8.19.1 v9.0.5 v9.1.1 v9.2.0

3 participants