Repository navigation
osd/ECUtil: fix offset accumulation in slice_map - #70151
Conversation
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
16 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
ok to test |
|
@aainscow hi Alex, could you take a look? |
There was a problem hiding this comment.
Thankyou for your proposed fix - much appreciated that the community is spotting bugs in the code.
The original code is wrong, but the fix is not quite right. The RO bounds cache only covers the data and not the parity shards. As such, the calculation was wrong.
|
@sunyuechi - Thankyou for your contribution, it is very much appreciated. Can you tell us how you came across this issue? I am interested, because I want to know whether we should be backporting this patch to Tentacle and Umbrella releases, or just including in main. |
1bdf52b to
636a20b
Compare
|
The patch https://github.com/user-attachments/files/29999040/ecutils_test.patch shows "Not Found".
I was just reading the code and it looked like a typo. Now it seems better to just use |
|
Here is the contents of the patch: I prefer your original fix, but with a tweak to ignore parity shards. |
slice_map() accumulated the slice bounds against the wrong operands, and included parity shards in ro_start and ro_end, which only track data. Introduced by 9e2841a ("osd: Introduce optimized EC"). Signed-off-by: Sun Yuechi <[email protected]>
Recompute ro_start and ro_end with compute_ro_range() and compare them against the cached values, and cover single-shard maps. Signed-off-by: Sun Yuechi <[email protected]>
636a20b to
84fc350
Compare
|
@aainscow Thanks for the help. I've changed it back to the original fix then. |
|
This PR has been added to main integration testing by skanta started 2026-07-17-04:58. |
slice_map() accumulated the slice bounds with the wrong operands:
end_offset took max() against start_offset instead of the previous
end_offset, ro_start took min() against start_offset instead of
ro_start, and ro_end used min() instead of max()
Introduced by 9e2841a ("osd: Introduce optimized EC").
Checklist