Project

General

Profile

Bug #40187

multisite: 'radosgw-admin bilog trim' stops after 1000 entries

Added by Casey Bodley 3 months ago. Updated 3 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/05/2019
Due date:
% Done:

0%

Source:
Tags:
multisite trim
Backport:
luminous mimic nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

The CLSRGWIssueBILogTrim class is intended to keep submitting cls_log_trim operations on each bucket index shard until they return -ENODATA to signal there's no more to trim.

However, if the while loop in CLSRGWConcurrentIO::operator() gets to the end of the shard list and collects all of its completions, wait_for_completions() will return false and exit the loop. This is always the case when num_shards = 1.

$ radosgw-admin bilog list --bucket testbucket --max-entries 99999 | jq length
5328
$ radosgw-admin bilog trim --bucket testbucket --end-marker 9
$ radosgw-admin bilog list --bucket testbucket --max-entries 99999 | jq length
4328

Related issues

Copied to rgw - Backport #40538: luminous: multisite: 'radosgw-admin bilog trim' stops after 1000 entries New
Copied to rgw - Backport #40539: mimic: multisite: 'radosgw-admin bilog trim' stops after 1000 entries In Progress
Copied to rgw - Backport #40540: nautilus: multisite: 'radosgw-admin bilog trim' stops after 1000 entries Resolved

History

#1 Updated by Casey Bodley 3 months ago

  • Status changed from New to Need Review
  • Assignee set to Casey Bodley
  • Pull request ID set to 28430

#2 Updated by Casey Bodley 3 months ago

  • Status changed from Need Review to Testing

#3 Updated by Casey Bodley 3 months ago

  • Status changed from Testing to Pending Backport

#4 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #40538: luminous: multisite: 'radosgw-admin bilog trim' stops after 1000 entries added

#5 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #40539: mimic: multisite: 'radosgw-admin bilog trim' stops after 1000 entries added

#6 Updated by Nathan Cutler 3 months ago

  • Copied to Backport #40540: nautilus: multisite: 'radosgw-admin bilog trim' stops after 1000 entries added

Also available in: Atom PDF