-
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
Forward compatibility for primary context handoff on 6.x #25545
Forward compatibility for primary context handoff on 6.x #25545
Conversation
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
@@ -293,6 +294,14 @@ public void onResponse(PrimaryShardReference primaryShardReference) { | |||
final ShardRouting primary = primaryShardReference.routingEntry(); | |||
assert primary.relocating() : "indexShard is marked as relocated but routing isn't" + primary; | |||
DiscoveryNode relocatingNode = clusterService.state().nodes().get(primary.relocatingNodeId()); | |||
if (relocatingNode != null && relocatingNode.getVersion().major > Version.CURRENT.major) { | |||
// ES 6.x requires a primary context hand-off during primary relocation which is not implemented on ES 5.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.
can add a sentence or two about what is currently known to be potentially missing? (in sync markers for shards on new nodes that should be accounted for GP calculations). I think it will help (at least it would me) to understand what this is about.
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.
+1
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 modulo elaborating on the comment as @bleskes suggested.
Companion PR for #25468