Bug #57519
data corruption due to network jitter
Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
100%
Source:
Tags:
backport_processed
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Description
In function RGWRados::Object::Write::_do_write_meta rgw_rados_operate may return -ETIMEDOUT due to network jitter.
But head obj may eventually be written successfully even if return -ETIMEDOUT. Due to r < 0, meta.canceled be set true.
In such scenario, all the tail objects will removed in the destructor of RadosWriter, then data corrupted.
To avoid data corruption, when returning -ETIMEDOUT, should clear all objects in RadosWriter.
Related issues
History
#1 Updated by Satoru Takeuchi over 1 year ago
Pull request ID: 47667
#2 Updated by Daniel Gryniewicz over 1 year ago
- Pull request ID set to 47667
#3 Updated by Casey Bodley over 1 year ago
- Status changed from New to Pending Backport
- Backport changed from quincy, pacific, octopus to quincy, pacific
#4 Updated by Backport Bot over 1 year ago
- Copied to Backport #57559: quincy: data corruption due to network jitter added
#5 Updated by Backport Bot over 1 year ago
- Copied to Backport #57560: pacific: data corruption due to network jitter added
#6 Updated by Backport Bot over 1 year ago
- Tags set to backport_processed
#7 Updated by Konstantin Shalygin about 1 year ago
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100