Address CompoundRetrieverBuilder Failure Handling#136732
Address CompoundRetrieverBuilder Failure Handling#136732john-wagster merged 26 commits intoelastic:mainfrom
Conversation
server/src/main/java/org/elasticsearch/search/retriever/CompoundRetrieverBuilder.java
Outdated
Show resolved
Hide resolved
|
@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 |
server/src/main/java/org/elasticsearch/search/retriever/CompoundRetrieverBuilder.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/search/retriever/CompoundRetrieverBuilder.java
Outdated
Show resolved
Hide resolved
|
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. |
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
|
Hi @john-wagster, I've created a changelog YAML for you. |
…:john-wagster/elasticsearch into better_retriever_errors_on_shard_failure
…lowed for compound retrievers
…:john-wagster/elasticsearch into better_retriever_errors_on_shard_failure
...rrf/src/internalClusterTest/java/org/elasticsearch/xpack/rank/rrf/RRFRetrieverBuilderIT.java
Outdated
Show resolved
Hide resolved
pmpailis
left a comment
There was a problem hiding this comment.
Really nice! thanks @john-wagster 🚀
💔 Backport failed
You can use sqren/backport to manually backport by running |
* passing back message and status code from each failed shard instead
* passing back message and status code from each failed shard instead
* passing back message and status code from each failed shard instead
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