Actions
Bug #54528
opencls_rgw_suggest_changes() may accidentally delete newly-completed entries
% Done:
0%
Source:
Tags:
dir_suggest backport_processed
Backport:
octopus pacific quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Description
if bucket listing races with a pending index transaction, its suggested removal may be mistakenly applied if that index transaction completes before the osd receives this suggestion
in rgw_dir_suggest_changes(), the sole condition for applying a suggested change is that the cur_disk.pending_map is empty. this is true after rgw_bucket_complete_op()
racing sequence of events in cls/rgw:
rgw_bucket_prepare_op() adds entry to pending_map
rgw_bucket_list() returns entry with pending_map
rgw_bucket_complete_op() completes entry, clears pending_map
rgw_dir_suggest_changes() finds pending_map empty, so applies a suggestion to remove the listed entry
Updated by Casey Bodley about 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot about 2 years ago
- Copied to Backport #55043: quincy: cls_rgw_suggest_changes() may accidentally delete newly-completed entries added
Updated by Backport Bot about 2 years ago
- Copied to Backport #55044: pacific: cls_rgw_suggest_changes() may accidentally delete newly-completed entries added
Updated by Backport Bot about 2 years ago
- Copied to Backport #55045: octopus: cls_rgw_suggest_changes() may accidentally delete newly-completed entries added
Updated by Backport Bot over 1 year ago
- Tags changed from dir_suggest to dir_suggest backport_processed
Actions