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
rgw: init oldest period after setting run_sync_thread #18664
Conversation
all commits in this PR are signed |
submodules for project are unmodified |
OK - docs built |
make check succeeded |
1 similar comment
make check succeeded |
src/rgw/rgw_rados.cc
Outdated
// running under radosgw-admin, so we check run_sync_thread here before | ||
// disabling it based on the zone/zonegroup setup | ||
meta_mgr->init_oldest_log_period(); | ||
} |
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.
moving this down is fine, but the comment still talks about checking run_sync_thread here before disabling it based on the zone/zonegroup setup
, which happens in the block above - could you please update or remove the comment?
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.
sure
@oritwas i found the crash bug in diff --git a/src/rgw/rgw_period_history.cc b/src/rgw/rgw_period_history.cc
index 895700f..1f0dbee 100644
--- a/src/rgw/rgw_period_history.cc
+++ b/src/rgw/rgw_period_history.cc
@@ -137,6 +137,8 @@ RGWPeriodHistory::Impl::Impl(CephContext* cct, Puller* puller,
// get a cursor to the current period
current_cursor = make_cursor(current_history, current_period.get_realm_epoch());
+ } else {
+ current_history = histories.end();
}
} |
found it too :) , will include it |
Fixes: http://tracker.ceph.com/issues/21996 Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Fixes: http://tracker.ceph.com/issues/21996 Signed-off-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Casey Bodley <cbodley@redhat.com>
4bdf5ec
to
cc3246c
Compare
Fixes: http://tracker.ceph.com/issues/21996
Signed-off-by: Orit Wasserman owasserm@redhat.com