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: PG Monitor should report waiting for backfill #7398

Merged
merged 2 commits into from Feb 4, 2016

Conversation

theanalyst
Copy link
Member

Instead of backfill (as the state is wait_backfill)

Fixes: #12744

@@ -2061,7 +2061,7 @@ void PGMonitor::get_health(list<pair<health_status_t,string> >& summary,
if (p->first & PG_STATE_INCOMPLETE)
note["incomplete"] += p->second;
if (p->first & PG_STATE_BACKFILL_WAIT)
note["backfill"] += p->second;
note["waiting for backfill"] += p->second;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theanalyst

should be "backfill-wait" instead? to be consistent with the document.

or, we should be consistent with the naming of "foo_wait", just like "recovery_wait". so we should update both the doc and the code:

  • s/backfill-wait/backfill_wait/ in doc
  • s/"backfill"/"backfill_wait"/ in the line above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I'll change to backfill_wait here and the doc as well..

@theanalyst
Copy link
Member Author

@tchaikov updated

@tchaikov
Copy link
Contributor

tchaikov commented Feb 2, 2016

lgtm modulo the typo in commit message.

Instead of backfill as it is actually waiting for backfill instead of
actually backfilling

Fixes: ceph#12744
Reported-by: Dan Mick <dmick@redhat.com>
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
Since the state reported is `backfilling` and `backfill_wait`

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
@theanalyst
Copy link
Member Author

Updated again. Thanks for the patient reviews

@tchaikov
Copy link
Contributor

tchaikov commented Feb 2, 2016

lgtm

liewegas added a commit that referenced this pull request Feb 4, 2016
mon: PG Monitor should report waiting for backfill

Reviewed-by: Kefu Chai <kchai@redhat.com>
@liewegas liewegas merged commit a637dcd into ceph:master Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants