Skip to content

Commit

Permalink
Clear interruption to avoid UpfrontAllocatingPageSourceTest failure
Browse files Browse the repository at this point in the history
Test testInterruption in UpfrontAllocatingPageSourceTest intermittently
fails with an InterruptionException at the latch.await() statement.
This failure exists because a test in FileBackedStorageEngineTest
interrupts the test thread and does not clear it.  This commit clears
the interruption state.
  • Loading branch information
cljohnso committed Jul 6, 2022
1 parent 05cc59e commit d3a2de9
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -220,6 +220,7 @@ public FileChannel getReadableChannel() {
Assert.assertArrayEquals(buffer, bytes);
} finally {
source.close();
Thread.interrupted(); // Clear interruption stats
}
}

Expand Down

0 comments on commit d3a2de9

Please sign in to comment.