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
rbd-mirror: improve split-brain detection logic #10703
Conversation
rbd-mirror: improve split-brain detection logic #10703
@@ -982,6 +982,10 @@ void ImageReplayer<I>::allocate_local_tag() { | |||
predecessor_mirror_uuid = librbd::Journal<>::LOCAL_MIRROR_UUID; | |||
} | |||
|
|||
dout(20) << "mirror_uuid=" << mirror_uuid << ", " | |||
<< "predecessor_mirror_uuid=" << predecessor_mirror_uuid << ", " | |||
<< "replay_tag_tid=" << m_replay_tag_tid << " ," |
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.
typo: s/" ,"/", "/
@trociny update pushed |
ASSERT_EQ(0, ctx.wait()); | ||
} | ||
|
||
TEST_F(TestMockImageReplayerBootstrapRequest, SplinBrainForcePromote) { |
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.
s/Splin/Split/
predecessor_commit_valid ? "true" : "false"); | ||
f->dump_unsigned("predecessor_tag_tid", predecessor_tag_tid); | ||
f->dump_unsigned("predecessor_entry_tid", predecessor_entry_tid); | ||
predecessor.dump(f); |
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.
@dillaman Add "predecessor" section here or "predecessor_" prefix for fields in TagPredecessor::dump? Otherwise the output might look confusing.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
A non-primary image's commit possition won't accurately reflect the current demotion/promotion chain. Therefore, directly specify the predecessor for promotion events. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Fixes: http://tracker.ceph.com/issues/16855 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
@trociny updates pushed |
lgtm |
http://tracker.ceph.com/issues/16855