Add a test verifying only one downstairs required to activate and read from a RO volume.#1962
Open
leftwo wants to merge 3 commits into
Open
Add a test verifying only one downstairs required to activate and read from a RO volume.#1962leftwo wants to merge 3 commits into
leftwo wants to merge 3 commits into
Conversation
Add integration_test_just_read_one_downstairs, which creates three read-only downstairs, stops two of them, and confirms that a read-only upstairs can still activate and read from the remaining single downstairs. Also add a stop() helper to TestDownstairs so a test can bring an individual downstairs down while keeping the rest of the set running.
Augment integration_test_just_read_one_downstairs to manually send a flush after the first read, then confirm a second read completes successfully. With only one downstairs running, the flush still acks because the two stopped downstairs have their jobs moved to Skipped, so the flush is complete on all clients rather than hanging.
jmpesp
reviewed
Jul 24, 2026
| id: Uuid::new_v4(), | ||
| block_size: BLOCK_SIZE as u64, | ||
| sub_volumes: vec![], | ||
| read_only_parent: Some(Box::new( |
Contributor
There was a problem hiding this comment.
Flushes won't be sent to read-only parents, you'll have to change the structure of the VCR to put this under sub volumes instead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added a test to verify that a read only volume that can connect to just one downstairs will be able to activate and read from that volume.
Shade was being thrown on Crucible, and this test was written in part to confirm that a single downstairs is all you need to talk to a RO volume.
quotes from the chat:
And
And
And
These slights were handled, and Crucible's good standing was returned.