-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rptest
: fix race-y checks in compaction_recovery_test
This test can race with segment rolls and un-self-compacted segments, since self compaction may not occur before `redpanda` version changes and node restarts occur. Thus, breaking the expectations around the compacted index `mtime()` stats. To fix the race conditions, return the `partition` data used to evaluate compaction as being finished, and use that to perform the equality/inequality checks between compacted index `mtime()` values. Also ensure that all segements present in the `partition` data that are produced during a version epoch are self-compacted in that same epoch, per expectations of the test.
- Loading branch information
1 parent
5fe9fc9
commit 854b56a
Showing
1 changed file
with
29 additions
and
15 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