Skip to content

Commit

Permalink
fix: `DataFileCollectionCompactionTest.testMergeUpdateSnapshotRestore…
Browse files Browse the repository at this point in the history
…` flake (#10577)

Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
  • Loading branch information
imalygin committed Dec 20, 2023
1 parent 0cdcec3 commit 4b2a1af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ void testMergeUpdateSnapshotRestore(final int testParam) throws Throwable {
final Future<?> f = exec.submit(() -> {
try {
final List<DataFileReader<?>> filesToMerge = getFilesToMerge(store);
assertEquals(numFiles, filesToMerge.size());
// Data file collection may create a new file before the compaction starts
assertTrue(filesToMerge.size() == numFiles || filesToMerge.size() == numFiles + 1);
compactor.compactFiles(index, filesToMerge, 1);
// Wait for the new file to be available. Without this wait, there
// may be 1 or 2
Expand Down

0 comments on commit 4b2a1af

Please sign in to comment.