Actions
Bug #77009
closed
PD
PD
cephsqlite: incorrect allocated size calculation in SimpleRADOSStriper::set_metadata
Bug #77009:
cephsqlite: incorrect allocated size calculation in SimpleRADOSStriper::set_metadata
Due date:
% Done:
0%
Source:
Development
Backport:
umbrella,tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v21.3.0-3442-g855ffb2203
Released In:
Upkeep Timestamp:
2026-11-26T01:03:25+00:00
Description
Description:
In `SimpleRADOSStriper::set_metadata`, when a file grows and the new size exceeds the currently allocated bounds, the striper calculates a rounded-up `new_allocated` value. A variable reference error in this calculation caused it to apply the bitmask to the current `size` instead of the requested `new_size`.
Impact:
The metadata is computed incorrectly during file growth. This causes under-allocation of the underlying objects, which can lead to layout inconsistencies, failed writes, or unpredictable behavior as the database attempts to expand.
Resolution:
Correct the sizing logic by changing `new_allocated = min_growth + ((size + mask) & ~mask);` to correctly use `new_size`.
PD Updated by Patrick Donnelly 6 months ago
- Status changed from In Progress to Fix Under Review
- Target version set to v21.0.0
- Source set to Development
- Backport set to tentacle,squid
- Pull request ID set to 69194
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80648: squid: cephsqlite: incorrect allocated size calculation in SimpleRADOSStriper::set_metadata added
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80649: tentacle: cephsqlite: incorrect allocated size calculation in SimpleRADOSStriper::set_metadata added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Fix Under Review to Backporting
- Merge Commit set to 855ffb2203354b21c7c0e767ec66f18a5b44c457
- Fixed In set to v21.3.0-3442-g855ffb2203
- Upkeep Timestamp set to 2026-09-18T16:33:17+00:00
PD Updated by Patrick Donnelly 3 months ago
- Status changed from Backporting to Pending Backport
- Backport changed from tentacle,squid to umbrella,tentacle,squid
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80664: umbrella: cephsqlite: incorrect allocated size calculation in SimpleRADOSStriper::set_metadata added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Upkeep Timestamp changed from 2026-09-18T16:33:17+00:00 to 2026-09-19T00:43:42+00:00
UB Updated by Upkeep Bot 8 days ago
- Status changed from Backporting to Resolved
- Upkeep Timestamp changed from 2026-09-19T00:43:42+00:00 to 2026-11-26T01:03:25+00:00
Actions