This is an automated email from the ASF dual-hosted git repository. brandonwilliams pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/trunk by this push: new 7d4c2da Fix flaky testWithMismatchingPending - org.apache.cassandra.distributed.test.PreviewRepairTest 7d4c2da is described below commit 7d4c2da7427392f506deaf832f2c66fc6a358688 Author: Ekaterina Dimitrova <ekaterina.dimitr...@datastax.com> AuthorDate: Thu May 14 13:53:09 2020 -0400 Fix flaky testWithMismatchingPending - org.apache.cassandra.distributed.test.PreviewRepairTest Patch by Ekaterina Dimitrova, reviewed by David Capwell and brandonwilliams for CASSANDRA-15685 --- .../org/apache/cassandra/distributed/test/PreviewRepairTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/distributed/org/apache/cassandra/distributed/test/PreviewRepairTest.java b/test/distributed/org/apache/cassandra/distributed/test/PreviewRepairTest.java index 70b40bc..7c306c0 100644 --- a/test/distributed/org/apache/cassandra/distributed/test/PreviewRepairTest.java +++ b/test/distributed/org/apache/cassandra/distributed/test/PreviewRepairTest.java @@ -99,6 +99,10 @@ public class PreviewRepairTest extends TestBaseImpl cfs.enableAutoCompaction(); FBUtilities.waitOnFutures(CompactionManager.instance.submitBackground(cfs)); }); + + //IR and Preview repair can't run concurrently. In case the test is flaky, please check CASSANDRA-15685 + Thread.sleep(1000); + RepairResult rs = cluster.get(1).callOnInstance(repair(options(true))); assertTrue(rs.success); // preview repair should succeed assertFalse(rs.wasInconsistent); // and we should see no mismatches --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org