Repository navigation
test/osd: Add truncate-then-write tests - #69662
Conversation
9dafd3d to
a57a45f
Compare
|
jenkins test api |
|
jenkins test make check |
|
jenkins test make check arm64 |
JonBailey1993
left a comment
There was a problem hiding this comment.
A couple of comments on the common/io_exerciser and test/osd/ceph_test_rados_io_sequence portion of the PR, but they are just nits and I'd have no problem with it being merged as-is.
| uint64_t length); | ||
| }; | ||
|
|
||
| class DoubleTruncateWriteOp : public TruncateWriteOp<OpType::TruncateWrite2, 2> { |
There was a problem hiding this comment.
Is double/triple purely added for use in the interactive mode, or was it intended to be used as part of a sequence? I only ask as I don't see them used as part of the automated tests.
There was a problem hiding this comment.
I initially thought that it might be good to have the option to add multiple writes. And I was copying the existing WriteOp code which has a Double and Triple option.
But as these classes are never being used, and I doubt they will be needed in the future, it probably makes sense to get rid of them.
There was a problem hiding this comment.
I'm not opposed to them staying around for interactive mode - more wanted to make sure there wasn't a DoubleTruncateWrite commit or something that hadn't yet been pushed or something, which sounds like there isn't, so that's fine.
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
76e170f to
cfd075a
Compare
940cffd to
2291564
Compare
current io exerciser sequences can model standalone truncates and writes, but cannot generate a single transaction that truncates an object and then writes sparse regions. Add SingleTruncateWriteOp, DoubleTruncateWriteOp, and TripleTruncateWriteOp, wire them through IoSequence, ObjectModel, and RadosIo, and extend EC sequences/tests so truncate+write transactions can be reproduced and validated. Signed-off-by: Matty Williams <[email protected]> Assisted-by: IBM Bob:Claude/GPT
2291564 to
0f5135a
Compare
|
The rebase had some merge conflicts which needed resolving, but these only affected the unit tests, which do not need a new QA run. |
bill-scales
left a comment
There was a problem hiding this comment.
Tests look ok, the changes to ceph_test_rados_io_sequence are a bit verbose and perhaps could be refactored a little to reduce repetition, but the new I/O sequence is good, as is the ability to issue truncate with 1,2, or 3 write ops in interactive mode.
The 2nd commit has a duplicate Signed-off-by message
Add unit-tests to recreate the problems found by the IO Sequencer in the previous commit. Some tests here rely on frameworks added in Umbrella and as such we are keeping them independent (in their own PRs). Signed-off-by: Alex Ainscow <[email protected]> Signed-off-by: Matty Williams <[email protected]> Assisted-by: IBM Bob:Claude/GPT
0f5135a to
c95853d
Compare
|
jenkins test make check |
Add an extensive set of tests and unit tests to fully test the combined truncate and write transactions which are supported by the RADOS API.
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 test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.