Skip to content

Conversation

@idegtiarenko
Copy link
Contributor

This enables testFailOnUnavailableShards.

This was originally pointing to the issue that is closed.
After enabling it I noticed that we were silently searching only in available shards.

This change attempts to fix this test.

@idegtiarenko idegtiarenko added >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v9.1.0 labels Mar 17, 2025
@idegtiarenko idegtiarenko requested review from dnhatn and nik9000 March 17, 2025 13:00
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

var shardId = group.shardId();
if (concreteIndices.contains(shardId.getIndexName()) == false) {
continue;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This condition was causing testFailOnUnavailableShards failure as concreteIndices did not contain unavailable index. It is present in one of the groups with empty allocatedNodes

Copy link
Member

Choose a reason for hiding this comment

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

I think we should not remove this. If a new index is created between field-caps and search_shards with conflicting mappings, the query can fail.

@idegtiarenko
Copy link
Contributor Author

Closing in favor of #125096

@idegtiarenko idegtiarenko deleted the enable_testFailOnUnavailableShards branch April 3, 2025 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants