-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Propagate SplitShardCountSummary to ESQL data nodes #137773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| return waitForCheckpoint; | ||
| } | ||
|
|
||
| // Used by ValidateQueryAction, ExplainAction, FieldCaps, TermsEnumAction, lookup join in ESQL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As noted, additional handling may be needed for lookup join.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, resizing lookup indices is not allowed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RIght, thanks. I think i would like to still pass the summary if it's available in that context just to avoid inconsistency. It would be a follow up anyway.
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
|
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing) |
| // This value is specific to resharding feature and this code path is specific to CCS | ||
| // involving 8.x remote cluster. | ||
| // We don't currently expect resharding to be used in such conditions so it's unset. | ||
| this.reshardSplitShardCountSummary = SplitShardCountSummary.UNSET; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can open a PR to remove this BWC after your PR, as it is no longer needed in 9.x.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice, we don't allow CCS between majors?
dnhatn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Sasha!
SplitShardCountSummaryis a piece of metadata specific to resharding feature. It is needed to ensure correctness of search results during resharding.This PR propagates
SplitShardCountSummarycalculated by a coordinator when obtaining routing information to data nodes. Since ESQL accesses routing information via a separate API this requires changing the search shards API response. It is then plugged into aShardSearchRequestthat is passed tocreateSearchContextcall (see also #135804). In future a custom searcher that ensures that correct documents are returned during resharding will be created using this value. This PR does not include this logic and only ensures that a correctShardSearchRequestis created.