Skip to content

Commit

Permalink
Read only downstairs can skip Live Repair (#984)
Browse files Browse the repository at this point in the history
* Read only downstairs can skip Live Repair

Don't bother trying to live repair a read only downstairs.  If we find
a read only downstairs was kicked out for being gone to long, we just
let it back in, as a read only region can have no changes, so there
should be nothing to repair.

With substantial help from @jmpesp 

---------

Co-authored-by: Alan Hanson <[email protected]>
  • Loading branch information
leftwo and Alan Hanson authored Oct 9, 2023
1 parent 0031237 commit aa961a7
Show file tree
Hide file tree
Showing 4 changed files with 387 additions and 7 deletions.
5 changes: 4 additions & 1 deletion integration_tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2628,7 +2628,10 @@ mod test {
}

// Old volume is no longer active
assert!(!volume.query_is_active().await?);
while volume.query_is_active().await? {
println!("Waiting for old volume to deactivate");
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
}

// Read back what we wrote.
let buffer = Buffer::new(new_volume.total_size().await? as usize);
Expand Down
Loading

0 comments on commit aa961a7

Please sign in to comment.