Skip to content

Conversation

john-wagster
Copy link
Contributor

exploring options for improving error handling for CompoundRetrieverBuilder particularly in the case where a response of sub retriever is 2xx but some shard failed to retrieve data.

addresses: #136529

@john-wagster
Copy link
Contributor Author

@pmpailis curious if this is roughly what you were thinking in terms of improving error handling and if you had other thoughts about how this should behave or additional checks. What else would be nice to have here? I thought about enhancing the error message handling within the if (false == failures.isEmpty()) { block to include a list of the failure messages as well. How do you feel about that?

@pmpailis
Copy link
Contributor

Thanks @john-wagster for picking this up! ❤️ Yeah, this is pretty much what I was thinking as well; only minor comments on the type of exception that we would throw (to avoid constantly 5xx).

Will take a look at adding a test case as well.

@john-wagster john-wagster requested a review from pmpailis October 17, 2025 23:03
@john-wagster john-wagster marked this pull request as ready for review October 17, 2025 23:03
@john-wagster john-wagster added :Search Relevance/Search Catch all for Search Relevance and removed WIP labels Oct 17, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Oct 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@john-wagster john-wagster added >bug and removed Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Oct 17, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Oct 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @john-wagster, I've created a changelog YAML for you.

@john-wagster john-wagster added v9.2.1 v9.1.6 and removed Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Oct 17, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Oct 17, 2025
@john-wagster
Copy link
Contributor Author

@pmpailis I created a mock test which helped with cleaning up the code. Let me know what you think about that and the current state of the code. I also realized i have no idea what version labels this should actually be applied to so I just put them all on here. I think that's everything that's currently supported??? Thoughts on what releases this should target would be welcome.

@john-wagster john-wagster added auto-backport Automatically create backport pull requests when merged v9.0.9 v8.17.11 v8.18.9 and removed v8.17.11 v8.18.9 labels Oct 17, 2025
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 Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v8.18.9 v8.19.6 v8.20.0 v9.0.9 v9.1.6 v9.2.1 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants