Project

General

Profile

Actions

Bug #16002

closed

ObjctCacher: doesn't correctly handle read replies on split BufferHeads

Added by Greg Farnum almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
ObjectCacher
Target version:
-
% Done:

0%

Source:
Support
Tags:
Backport:
jewel,hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In ObjectCacher::bh_read_finish, we have a nonsense snippet

      } else {
        bh->bl.substr_of(bl,
                         oldpos-bh->start(),
                         bh->length());
        mark_clean(bh);
      }

Here we're trying to map the offsets of an incoming OSD op reply's bufferlist with our BufferHeads. But oldpos==bh->start at all times. The correct offset calculation is "bh->start()-start" ("start" being a function parameter corresponding to bl's position within the object).

The patch is obviously simple enough, but I want tests verifying it as well.


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #16546: hammer: ObjectCacher doesn't correctly handle read replies on split BufferHeadsResolvedAlexey SheplyakovActions
Copied to Ceph - Backport #16547: jewel:ObjectCacher: doesn't correctly handle read replies on split BufferHeadsResolvedNathan CutlerActions
Actions #1

Updated by Greg Farnum almost 8 years ago

  • Status changed from In Progress to Pending Backport
  • Backport set to jewel

I'll probably do this backport within a couple days, FYI.

Actions #2

Updated by Xiaoxi Chen almost 8 years ago

  • Backport changed from jewel to jewel,hammer

Hammer is not EOL yet, we would better backport to hammer as well

Actions #3

Updated by Xiaoxi Chen almost 8 years ago

  • Copied to Backport #16546: hammer: ObjectCacher doesn't correctly handle read replies on split BufferHeads added
Actions #4

Updated by Xiaoxi Chen almost 8 years ago

  • Copied to Backport #16547: jewel:ObjectCacher: doesn't correctly handle read replies on split BufferHeads added
Actions #6

Updated by Nathan Cutler over 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF