-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Introduced Global checkpoints for Sequence Numbers #15485
Conversation
@jasontedor I fixed the issue we ran into yesterday where the a primary relocation target started updating the global checkpoint too early |
@Override | ||
public void handleResponse(TransportResponse.Empty vResponse) { | ||
onReplicaSuccess(); | ||
transportService.sendRequest(node, transportReplicaAction, replicaRequest, transportOptions, new TransportResponseHandler<ShardResponse>() { |
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.
Nit: the indentation is off throughout the body of the anonymous implementation of TransportRequestHandler<ShardResponse>
here.
|
||
/** | ||
* A shard component that is responsible of tracking the global checkpoint. The global checkpoint | ||
* is the highest seq_no for which all lower (or equal) seq no have been process on all shards that |
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.
Nit: "seq no" -> "seq_no" (inconsistencies will make searching more difficult)
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.
Nit: "process" -> "processed"
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.
done
Since this has gone through a few rounds of review before, I largely have the same thoughts I had then. I gave it a thorough re-read and left some comments. |
@jasontedor thx for the review. I pushed another commit addressing it. |
LGTM. |
This is a work in progress PR for introducing Global Checkpoints into the feature/seq_no branch. I made it to get some feedback before things are finalized / cycles are spent on docs etc. It is fairly solid, but a couple of things miss: