Project

General

Profile

Actions

Bug #22246

open

rgw: persist rgw_lc_max_objs

Added by songbo wang over 6 years ago. Updated over 6 years ago.

Status:
New
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

The argument rgw_lc_max_objs is not persisted, if it's changed to
a smaller value, some bucket's lifecycle config will be invalid.

[[https://github.com/ceph/ceph/pull/19119]]

Actions #2

Updated by John Spray over 6 years ago

  • Project changed from Ceph to rgw
  • Category deleted (22)
Actions #3

Updated by songbo wang over 6 years ago

I have made some changes:
1.Record the previous value(rgw_lc_max_objs) as a rados obj(lc.meta) in lc pool

2.Add a reset_all_entry function that can reset all the bucket entry, when the new value is not
equal to the recorded. So a bigger or smaller value can be set .

3.Add a restore_miss_entry function that can recovery the bucket entries, when RGW start failed for some abnormal case.

Actions

Also available in: Atom PDF