Project

General

Profile

Bug #46027

bufferlist c_str() sometimes clears assignment to mempool

Added by Adam Kupczyk 7 months ago. Updated 2 months ago.

Status:
Pending Backport
Priority:
Low
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus, octopus
Regression:
No
Severity:
4 - irritation
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Sometimes c_str() needs to rebuild underlying buffer::raw.
It that case original assignment to mempool is lost.


Related issues

Copied to bluestore - Backport #48193: nautilus: bufferlist c_str() sometimes clears assignment to mempool New
Copied to bluestore - Backport #48194: octopus: bufferlist c_str() sometimes clears assignment to mempool Resolved

History

#1 Updated by Adam Kupczyk 7 months ago

  • Assignee set to Adam Kupczyk

#3 Updated by Kefu Chai 7 months ago

  • Status changed from New to Resolved
  • Pull request ID set to 35584

#4 Updated by Zac Medico 2 months ago

It could be beneficial to backport this fix to octypus and nautilus. I suspect that it fixes a rebuild leak to the buffer_anon mempool in the ObjectModDesc trim_bl method shown here:

https://github.com/ceph/ceph/commit/62fd382fbf10f2b78946426644d445549a7ebed1

#5 Updated by Nathan Cutler 2 months ago

  • Status changed from Resolved to Pending Backport
  • Backport set to nautilus, octopus

#6 Updated by Nathan Cutler 2 months ago

  • Copied to Backport #48193: nautilus: bufferlist c_str() sometimes clears assignment to mempool added

#7 Updated by Nathan Cutler 2 months ago

  • Copied to Backport #48194: octopus: bufferlist c_str() sometimes clears assignment to mempool added

Also available in: Atom PDF