Repository navigation
crimson/os/seastore: cleanup and use LBAMapping::is_stable() - #55888
Conversation
There was a problem hiding this comment.
I believe that the existing test case might not be accurate against this commit.
In the multiple_remap test case, a extent (0 ~ 128 << 10) is initially written. Subsequently, five extents with distinct ranges are overwritten. So, in the existing case, the assert is correct if there are five mappings after the transaction is done. But, it is not correct with this commit because four writes after the initial write are merged into the extent currently being processed---please note that the initial write generates three mapping ranges. This results in only three mapping ranges remaining after the transaction is done.
There was a problem hiding this comment.
Hm, interesting to see that the adjustment is reflected in the UT.
I think the new mapping result is more approriate than the previous one according to my another comment "overwriting a pending extent shouldn't involve remapping".
There was a problem hiding this comment.
I think we need to determine whether an unstable pin can be remapped or not. The test_remap_pin test case involves multiple remaps within a single transaction. This leads to a failure in the second remap attempt.
There was a problem hiding this comment.
Thanks for the investigation!
For the real (non-test) use case, overwriting a pending extent shouldn't involve remapping -- it is better for data to be overwritten in the pending buffer directly. IIUC this is why this ceph-assert was added initially. Also refer to the decision made in overwrite_plan_t.
So, probably we can just drop this ceph-assert (and merge all into 1 commit) as testing remapping pending extents doesn't look unreasonable to me.
|
@cyx1231st Can you take a look? |
3ca28e1 to
6df7304
Compare
There was a problem hiding this comment.
See #55888 (comment)
This assert looks less meaningful, how about replacing it by a comment?
// The according extent might be stable or pending.
There was a problem hiding this comment.
Forget to drop the ceph-assert?
6df7304 to
94d02ce
Compare
Signed-off-by: Yingxin Cheng <[email protected]> Signed-off-by: Myoungwon Oh <[email protected]>
Signed-off-by: Myoungwon Oh <[email protected]>
94d02ce to
3c7ef1b
Compare
|
jenkins test make check |
2 similar comments
|
jenkins test make check |
|
jenkins test make check |
|
Hm, most of the seastar related tests are timed out, the logs were stopped at |
|
jenkins test make check |
#54326
Signed-off-by: Yingxin Cheng [email protected]
Signed-off-by: Myoungwon Oh [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e