Project

General

Profile

Bug #38134

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

Added by Eric Ivancich 21 days ago. Updated 19 days ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
Start date:
01/31/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
mimic,luminous
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

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.


Related issues

Duplicated by rgw - Bug #18507: bucket and user can't be deleted Duplicate 01/12/2017
Copied to rgw - Backport #38148: luminous: rgw: `radosgw-admin bucket rm ... --purge-objects` can hang... In Progress
Copied to rgw - Backport #38147: mimic: rgw: `radosgw-admin bucket rm ... --purge-objects` can hang... Resolved

History

#1 Updated by Eric Ivancich 21 days ago

  • Subject changed from rgw: `radosgw-admin bucket rm ... --purge-objects` hangs to rgw: `radosgw-admin bucket rm ... --purge-objects` can hang...

#2 Updated by Casey Bodley 21 days ago

  • Status changed from In Progress to Testing

#3 Updated by Casey Bodley 21 days ago

  • Duplicated by Bug #18507: bucket and user can't be deleted added

#4 Updated by Eric Ivancich 21 days ago

  • Copied to Backport #38148: luminous: rgw: `radosgw-admin bucket rm ... --purge-objects` can hang... added

#5 Updated by Eric Ivancich 21 days ago

  • Copied to Backport #38147: mimic: rgw: `radosgw-admin bucket rm ... --purge-objects` can hang... added

#6 Updated by Eric Ivancich 21 days ago

  • Status changed from Testing to Pending Backport

#7 Updated by Nathan Cutler 19 days ago

  • Pull request ID set to 26231

Also available in: Atom PDF