-
Notifications
You must be signed in to change notification settings - Fork 6k
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
MDSMonitor: only clog changes to active #18600
Conversation
@jcsp PTAL. |
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.
makes sense to me, but feel free to wait for @jcsp's review if in doubt :)
src/mon/MDSMonitor.cc
Outdated
@@ -738,7 +738,7 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op) | |||
info->state_seq = seq; | |||
}); | |||
|
|||
if (state == MDSMap::STATE_ACTIVE) { | |||
if (info.state != MDSMap::STATE_ACTIVE && state == MDSMap::STATE_ACTIVE) { |
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.
info
is a reference that will have been modified in place by modify_daemon
, so I don't think this will ever be true. Probably can just swap this block with the preceding one, or be even more explicit by adding an old_state
temporarily for this check?
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.
Hmm, now I'm not sure how this solution actually worked for me (probably my testing was not right). I'll fix this...
Otherwise we get constant INFO messages that an MDS is active. Fixes: http://tracker.ceph.com/issues/21959 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
@jcsp PTAL. |
retest this please |
* refs/pull/18600/head: MDSMonitor: only clog changes to active Reviewed-by: John Spray <john.spray@redhat.com> Reviewed-by: João Eduardo Luís <joao@suse.de>
Otherwise we get constant INFO messages that an MDS is active.
Fixes: http://tracker.ceph.com/issues/21959
Signed-off-by: Patrick Donnelly pdonnell@redhat.com