Project

General

Profile

Actions

Bug #38134

closed

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

Added by J. Eric Ivancich about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Target version:
% Done:

0%

Source:
Tags:
Backport:
mimic,luminous
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 4 (1 open3 closed)

Related to rgw - Bug #38470: Radosg-admin can't delete bucket and radosgw-admin gc process not working (or very slowly)NewJ. Eric Ivancich

Actions
Has duplicate rgw - Bug #18507: bucket and user can't be deletedDuplicateYehuda Sadeh01/12/2017

Actions
Copied to rgw - Backport #38148: luminous: rgw: `radosgw-admin bucket rm ... --purge-objects` can hang...ResolvedPrashant DActions
Copied to rgw - Backport #38147: mimic: rgw: `radosgw-admin bucket rm ... --purge-objects` can hang...ResolvedPrashant DActions
Actions #1

Updated by J. Eric Ivancich about 5 years ago

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

Updated by Casey Bodley about 5 years ago

  • Status changed from In Progress to 7
Actions #3

Updated by Casey Bodley about 5 years ago

  • Has duplicate Bug #18507: bucket and user can't be deleted added
Actions #4

Updated by J. Eric Ivancich about 5 years ago

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

Updated by J. Eric Ivancich about 5 years ago

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

Updated by J. Eric Ivancich about 5 years ago

  • Status changed from 7 to Pending Backport
Actions #7

Updated by Nathan Cutler about 5 years ago

  • Pull request ID set to 26231
Actions #8

Updated by Casey Bodley about 5 years ago

  • Related to Bug #38470: Radosg-admin can't delete bucket and radosgw-admin gc process not working (or very slowly) added
Actions #9

Updated by Nathan Cutler about 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF