Project

General

Profile

Bug #61442

rgw_d3n_datacache: Asynchronous IO writes are not tracked for failure

Added by Vedansh Bhartia 10 months ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
d3n
Backport:
pacific quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

D3nDataCache::put invokes an aio_write, and expects to get a callback to D3nDataCache::d3n_libaio_write_completion_cb when the write completes. However, according to the man page (https://www.man7.org/linux/man-pages/man3/aio_write.3.html), this callback is only invoked when the write succeeds. If the write fails, D3nDataCache never gets to know about it.
Additionally, when the write does complete, we do not check whether the number of bytes written was correct.

History

#1 Updated by Casey Bodley 10 months ago

  • Tags set to d3n
  • Backport set to pacific quincy reef

#2 Updated by Casey Bodley 10 months ago

  • Assignee set to Mark Kogan

Also available in: Atom PDF