-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/si: use snapshots to find removed segments
Previously, the shadow indexing end-to-end asserted against the current number of segments when checking for segment removal. This approach has the downside that a restart/failure of a redpanda node causes a segment roll, which makes the assertion unreliable in a context with simulated failures. This commit changes the assertion to use the wait_for_removal_of_n_segments helper method which uses segment snapshots to determine how many segments were removed. The change deflakes the test against a high number of injected node failures.
- Loading branch information
Vlad Lazar
committed
Aug 12, 2022
1 parent
e86ef44
commit a616818
Showing
1 changed file
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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