Skip to content
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

mon/PGMonitor: reliably mark PGs state #8089

Merged
merged 1 commit into from Mar 15, 2016

Conversation

liewegas
Copy link
Member

In beb99d7 we partially addressed
the case where a acting_primary update raced with an attemp to
mark the pg state. However, if the acting_primary changed, we
didn't check the new acting_primary to ensure that it is also
down and we should still mark things stale.

Also, printing out the acting_primary aids debugging.

Signed-off-by: Sage Weil sage@redhat.com

@liewegas
Copy link
Member Author

@tchaikov mind taking a look?

@liewegas
Copy link
Member Author

I'm trying to track down a bug where the mon marked every pg stale but I can't figure out why.. the extra debugging here will help a bit.

In beb99d7 we partially addressed
the case where a acting_primary update raced with an attemp to
mark the pg state.  However, if the acting_primary changed, we
didn't check the new acting_primary to ensure that it is also
down and we should still mark things stale.

Also, printing out the acting_primary aids debugging.

Signed-off-by: Sage Weil <sage@redhat.com>
@tchaikov
Copy link
Contributor

lgtm

liewegas added a commit that referenced this pull request Mar 15, 2016
mon/PGMonitor: reliably mark PGs state

Reviewed-by: Kefu Chai <kchai@redhat.com>
@liewegas liewegas merged commit bb9ce60 into ceph:master Mar 15, 2016
@liewegas liewegas deleted the wip-mark-pg-stale branch March 15, 2016 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants