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
jewel: rgw: Have a flavor of bucket deletion in radosgw-admin to bypass garbage collection #10661
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ghost
self-assigned this
Aug 10, 2016
ghost
added this to the jewel milestone
Aug 10, 2016
ghost
pushed a commit
that referenced
this pull request
Aug 12, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 16, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 17, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 22, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 22, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 23, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 24, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 24, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 24, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
pushed a commit
that referenced
this pull request
Aug 24, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost
changed the title
jewel: Have a flavor of bucket deletion in radosgw-admin to bypass garbage collection
DNM: jewel: Have a flavor of bucket deletion in radosgw-admin to bypass garbage collection
Aug 24, 2016
CXX rgw/librgw_la-rgw_env.lo CXX rgw/librgw_la-rgw_fcgi.lo CXX rgw/librgw_la-rgw_formats.lo rgw/rgw_bucket.cc: In function 'int rgw_remove_bucket_bypass_gc(RGWRados*, rgw_bucket&, int, bool)': error: rgw/rgw_bucket.cc:747:12: 'class RGWRados' has no member named 'get_bucket_instance_entry' store->get_bucket_instance_entry(bucket, entry); ^ make[3]: *** [rgw/librgw_la-rgw_bucket.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/srv/autobuild-ceph/gitbuilder.git/build/rpmbuild/BUILD/ceph-10.2.2/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/srv/autobuild-ceph/gitbuilder.git/build/rpmbuild/BUILD/ceph-10.2.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/srv/autobuild-ceph/gitbuilder.git/build/rpmbuild/BUILD/ceph-10.2.2/src' make: *** [all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.vZoIBo (%build) |
@dachary just need:
This follows from the effect of:
|
thanks, will use that :-) |
rebased |
object deletions async. Fixes: http://tracker.ceph.com/issues/15557 Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com> (cherry picked from commit b7a69fc) Conflicts: src/rgw/rgw_bucket.cc: as recommended by mattbenjamin --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -743,8 +743,7 @@ int rgw_remove_bucket_bypass_gc(RGWRados *store, rgw_bucket& bucket, if (!store->is_syncing_bucket_meta(bucket)) { RGWObjVersionTracker objv_tracker; - string entry; - store->get_bucket_instance_entry(bucket, entry); + string entry = bucket.get_key(); ret = rgw_bucket_instance_remove_entry(store, entry, &objv_tracker); if (ret < 0) { lderr(store->ctx()) << "ERROR: could not remove bucket instance entry" << bucket.name << "with ret as " << ret << dendl;
applied the patch suggested at #10661 (comment) |
jenkins test this please (general jenkins failure) |
ghost
changed the title
DNM: jewel: Have a flavor of bucket deletion in radosgw-admin to bypass garbage collection
jewel: Have a flavor of bucket deletion in radosgw-admin to bypass garbage collection
Dec 5, 2016
ghost
pushed a commit
that referenced
this pull request
Dec 5, 2016
… radosgw-admin to bypass garbage collection Reviewed-by: Loic Dachary <ldachary@redhat.com>
check this please |
smithfarm
changed the title
jewel: Have a flavor of bucket deletion in radosgw-admin to bypass garbage collection
jewel: rgw: Have a flavor of bucket deletion in radosgw-admin to bypass garbage collection
Feb 1, 2017
This passed an rgw suite at http://tracker.ceph.com/issues/17851#note-50 and http://tracker.ceph.com/issues/17851#note-58 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
http://tracker.ceph.com/issues/16871