Project

General

Profile

Actions

Bug #50892

open

rgw: In a multi-site environment, deleting the key from the bucket list operation will cause the object's key to be permanently lost.

Added by ren weiguo almost 3 years ago. Updated over 2 years ago.

Status:
Need More Info
Priority:
Normal
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

In a multi-site synchronization environment, the bucket full sync process will send a bucket list request to the remote, but the remote execution of the bucket list operation is likely to delete the object key.
for example:
t1 object upload-start [rgw_bucket_dir_entry.exists =false] (put obj)
t2 list bucket opreate start find 'rgw_bucket_dir_entry.exists=false',and get_obj_state() return noevent. (list bucket)
t3 object upload-end ,[rgw_bucket_dir_entry.exists =true],(put obj)
t4 list bucket remove object key because t2.(list bucket)
You can add code like diff.txt to reproduce it.


Files

diff.txt (961 Bytes) diff.txt ren weiguo, 05/20/2021 06:16 AM
Actions #1

Updated by J. Eric Ivancich almost 3 years ago

  • Assignee set to J. Eric Ivancich
Actions #2

Updated by Neha Ojha almost 3 years ago

  • Project changed from Ceph to rgw
Actions #3

Updated by Casey Bodley over 2 years ago

  • Status changed from New to Need More Info
  • Pull request ID set to 41435

as commented on the PR, i believe rgw's current behavior is correct

Actions

Also available in: Atom PDF