Project

General

Profile

Actions

Bug #34307

closed

radosgw: dynamic resharding does not drop old bucket indexes

Added by Abhishek Lekshmanan over 5 years ago. Updated almost 5 years ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

ceph mon now complains when omap numbers exceed a threshold (12.2.6+, master/mimic), which can easily happen with large bucket indexes. From luminous we have dynamic resharding which while shards the bucket indexes, still seems to keep the old bucket indexes around, which have the large index which pg deep scrub will report. Have a radosgw-admin option to list (and maybe clear) these buckets and indexes so that they may be easily removed by the administrator.

Actions #1

Updated by Abhishek Lekshmanan over 5 years ago

bash oneliner find these bucket indexes using rgw admin commands

$ radosgw-admin bucket stats > bucket-stat.out
$ grep -E '"bucket"|"id"|"marker"' bucket-stats.out | awk -F ":" '{print $2}' | while read -r bucket; do read -r id; read -r marker; [ "$id" == "$marker" ] && true || echo $bucket $id $marker

Actions #2

Updated by Matt Benjamin over 5 years ago

I thought that the design intent of resharding was that old indexes would be retired once resharding was successfully completed. It seems that behavior should at least be an option, and probably the default?

Matt

Actions #3

Updated by Matt Benjamin over 5 years ago

  • Assignee set to Orit Wasserman
Actions #4

Updated by Vikhyat Umrao over 5 years ago

Orit had created this bug - http://tracker.ceph.com/issues/24082 I hope it is related to dynamic sharding.

Actions #5

Updated by Casey Bodley almost 5 years ago

  • Status changed from New to Resolved
  • Assignee deleted (Orit Wasserman)
Actions

Also available in: Atom PDF