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

luminous: rgw: "radosgw-admin bucket rm ... --purge-objects" can hang #26263

Merged
merged 1 commit into from
Feb 25, 2019

Commits on Feb 4, 2019

  1. rgw: radosgw-admin bucket rm ... --purge-objects can hang...

    This command can hang (i.e., enter an infinite loop) due to
    problematic bucket index entries left as a result of bug
    https://tracker.ceph.com/issues/38007 .
    
    The fix is to ignore the false bucket index entries -- since they do
    not represent actual objects -- and remove all actual objects in the
    bucket, so that bucket itself can be removed.
    
    This fixes the both code paths whether `--bypass-gc` is specified or
    not.
    
    Furthermore, to made these operations more efficient, the internal
    listing of the bucket is done unordered. This would improve behavior
    when removing buckets with a large number of objects.
    
    Fixes: http://tracker.ceph.com/issues/38134
    Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
    (cherry picked from commit 5b3dc38)
    ivancich authored and Prashant D committed Feb 4, 2019
    Configuration menu
    Copy the full SHA
    5549258 View commit details
    Browse the repository at this point in the history