Skip to content

Conversation

@idegtiarenko
Copy link
Contributor

This adds a FC flag requiring it to return all failures.
It is required in order to create a summary of multiple errors or in order to handle partial results.

var cause = failure.getException().getCause();
assertThat(cause, isA(IndexNotFoundException.class));
assertThat(cause.getMessage(), equalTo("no such index [no-such-index]"));
assertThat(failure.getIndices(), arrayContaining("remote_cluster:no-such-index")); // this contains actual remote
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be nice if we could adapt it to:

  • contain all indices not found failures
  • be able to report indices not found and security exceptions at once
  • collect unknown remotes exceptions (so that a caller could handle them according to skip unavailable)

# Conflicts:
#	server/src/internalClusterTest/java/org/elasticsearch/search/fieldcaps/CCSFieldCapabilitiesIT.java
#	server/src/main/java/org/elasticsearch/action/fieldcaps/TransportFieldCapabilitiesAction.java
@piergm
Copy link
Member

piergm commented Nov 19, 2025

@idegtiarenko do we still need this or can be derived from the resolvedLocally and resolvedRemotely data structures?
Also in CPS multiple errors will be merged together and possibly thrown when we call validate. So this should only be handled in non-CPS. Correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants