Project

General

Profile

Bug #24484

osdc: wrong offset in BufferHead

Added by dongdong tao 7 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
-
Start date:
06/10/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous,mimic
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:

Description

The offset of BufferHead should be "opos - bh->start()"


Related issues

Copied to RADOS - Backport #24583: mimic: osdc: wrong offset in BufferHead Resolved
Copied to RADOS - Backport #24584: luminous: osdc: wrong offset in BufferHead Resolved

History

#2 Updated by dongdong tao 7 months ago

this bug will lead to an exception "buffer::end_of_buffer" which is thrown in function "buffer::list::substr_of"
This is easy to reproduce by
1. resetting the file layout to make one ObjectExtent contains multiple buffer_extent.
2. do a buffer write.

#3 Updated by Kefu Chai 7 months ago

  • Project changed from fs to RADOS
  • Category set to Correctness/Safety
  • Status changed from New to Need Review
  • Assignee set to dongdong tao

#4 Updated by Jason Dillaman 7 months ago

  • Backport set to luminous,mimic

#5 Updated by Jason Dillaman 7 months ago

  • Status changed from Need Review to Pending Backport

#6 Updated by Nathan Cutler 7 months ago

#7 Updated by Nathan Cutler 7 months ago

  • Copied to Backport #24584: luminous: osdc: wrong offset in BufferHead added

#8 Updated by Nathan Cutler 6 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF