Repository navigation
os/bluestore: rebuild all pextents of a shared blob in fsck repair - #72812
Conversation
| if(it == refs_map.end()) { | ||
| return true; | ||
| } | ||
| // every valid pextent holds a reference, as counted by fsck |
There was a problem hiding this comment.
Nit: cut ", as counted by fsck".
It is not fsck that determines that all extents are tracked in shared blobs, just agreed metadata structure.
| ghobject_t hoid2 = make_object("Object 2", pool); | ||
|
|
||
| bufferlist bl; | ||
| bl.append(string(block_size, 1)); |
There was a problem hiding this comment.
Very minor:
string(block_size, 1) is
basic_string( size_type count, CharT ch);
So the value 1 is a char. It is easy to mix, so its better to provide visual hint, like '\001', char(1) or switch to other character 'x'.
|
This PR has been added to wip-jaya-bs-testing-10-27-2026. |
_fsck_repair_shared_blobs() rebuilds the ref_map of a broken shared blob, but only takes the first valid pextent of each blob. The rewritten record misses the other extents, so the same repair run releases them as leaked although objects still use them, and removing such an object later aborts with "put on missing extent". Reference every valid pextent, as fsck counts them. Fixes: https://tracker.ceph.com/issues/81432 Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
20e60ae to
fcb7a39
Compare
|
jenkins test make check |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
fsck repair rebuilds the ref_map of a broken shared blob, but takes only the first valid pextent of each blob. For a blob with more pextents the rewritten record misses the others. The same repair run then sees those extents as leaked and releases them although the head and the clone still use them, and removing the clone later aborts with "put on missing extent".
Reference every valid pextent, as fsck counts them. The unit test breaks the record of a two-pextent shared blob, repairs, checks the ref_map and fsck, and removes the clone and the head.
Fixes: https://tracker.ceph.com/issues/81432
Checklist