-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
storage: eagerly replicate after splits only if not replicated #7396
storage: eagerly replicate after splits only if not replicated #7396
Conversation
Review status: 0 of 6 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. storage/replica_command.go, line 2317 [r2] (raw file):
This is the key line which avoids replicating if we're also campaigning. Totally unclear to me why replicating while campaigning would be problematic. And note that the replica scanner could decide to replicate anyways so the bug seen in #7386 still exists without this PR, it is just much more rare. @tschottdorf, @bdarnell I need your guidance here. Comments from Reviewable |
PS I'm in no hurry to merge this. Review status: 0 of 6 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. Comments from Reviewable |
Review status: 0 of 6 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. storage/replica_command.go, line 2317 [r2] (raw file):
|
This reverts commit c0a8619.
b145b51
to
a0f86dd
Compare
This is ready for another look. The first commit is revert of a revert. Review status: 0 of 6 files reviewed at latest revision, 2 unresolved discussions, some commit checks pending. storage/replica_command.go, line 2314 [r4] (raw file):
I've decided to leave these restrictions in for now. The address @BramGrunier's concern that we're calling Comments from Reviewable |
except for the "Fixes #7386" bit, since that underlying bug is still present. Reviewed 6 of 6 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, 1 of 1 files at r4. Comments from Reviewable |
Yeah, I'll remove that. #7386 was fixed by #7404. Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. Comments from Reviewable |
a0f86dd
to
fa6a986
Compare
This change is