rgw: dynamic resharding modifies existing bucket instance#38657
rgw: dynamic resharding modifies existing bucket instance#38657cbodley wants to merge 38 commits intoceph:masterfrom
Conversation
e2890fb to
b31e054
Compare
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
|
jenkins test make check |
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
…s a parameter. Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
…s_rgw_reshard_status. Remove unused parameters in cls_rgw_bucket_instance_entry. Other minor cleanup fixes. Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
…) to be able to read the updated layout. Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Manjarabad Jagannath <smanjara@redhat.com>
…ard_reshard()
- remove unused 'instance_id' from cls_rgw_reshard_entry
- other minor fixes
Signed-off-by: Shilpa Manjarabad Jagannath <smanjara@redhat.com>
…tions.
- call init_index() on target layout during reshard process.
Takes const rgw::bucket_index_layout_generation&
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
- fix bi_get() to get objects after being resharded Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
…stance_id and new_instance_id fields back for proper decoding. Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
- function update_bucket() handles updating bucket state Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
b31e054 to
c282264
Compare
|
rebased. hoping the unrelated make check failures go away |
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
the rgw_bucket overload of BucketShard::init() has to look up the bucket info. use the RGWBucketInfo overload when we have one Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
these are only used for testing, not administration Signed-off-by: Casey Bodley <cbodley@redhat.com>
c282264 to
ffaa749
Compare
|
oh wow, that's an obscure failure. i guess something in 'make check' was linting test_rgw_reshard.py? pushed a fix |
addresses test timeout and warning message: [WARNING] /home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/src/gtest-death-test.cc:1121:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 3 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out. Signed-off-by: Casey Bodley <cbodley@redhat.com>
pushed a fix for the death tests |
|
jenkins test api |
| ldout(store->ctx(), 0) << "ERROR: " << __func__ << " failed to clear " | ||
| "target index layout in bucket info: " << cpp_strerror(ret) << dendl; | ||
|
|
||
| bucket_info.layout = std::move(prev); // restore in-memory layout |
There was a problem hiding this comment.
after restoring the in memory layout, I think we have to commit it.
There was a problem hiding this comment.
this block is handling the error from put_bucket_instance_info() above, where we failed to commit the updated bucket_info to rados. so it's just reverting to what we had before
|
everything else looks great! |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
this merged into #39002 |
|
yay! |
builds on #35175
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox