Project

General

Profile

Bug #50194

librgw: make rgw file handle versioned

Added by Xuehan Xu 15 days ago. Updated 11 days ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

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

Description

The reason that we need this is that there could be the following scenario:

rgw_setattr sets the file attr;
rgw_write writes some new data, and encodes its attr to store into rados;
before the actual persistence of the file's attr bl, rgw_lookup loads the file's
previous attr and modifies the current file handle's metadata;
rgw_write's result persisted to rados;
rgw_setattr set the current file handle's metadata which is actually an old one to rados
In this case, the attr in rados would be out of date which means loss of data

History

#1 Updated by Casey Bodley 13 days ago

  • Status changed from New to Fix Under Review

#2 Updated by Nathan Cutler 11 days ago

  • Backport changed from Pacific; Octopus; Nautilus to pacific, octopus, nautilus

#3 Updated by Nathan Cutler 11 days ago

@Xuehan Xu - I noticed that #50193 was created before the fix got merged into master.

Please do not create backport issues manually. They get created automatically by a bot when the master PR gets merged and this tracker's status gets changed to "Pending Backport".

Thanks!

Also available in: Atom PDF