浏览代码

Mute failing AsyncTwoPhaseIndexerTests

See https://github.com/elastic/elasticsearch/issues/42084
David Kyle 6 年之前
父节点
当前提交
71dd6e5980

+ 3 - 0
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/indexing/AsyncTwoPhaseIndexerTests.java

@@ -222,6 +222,7 @@ public class AsyncTwoPhaseIndexerTests extends ESTestCase {
         }
         }
     }
     }
 
 
+    @AwaitsFix( bugUrl = "https://github.com/elastic/elasticsearch/issues/42084")
     public void testStateMachine() throws Exception {
     public void testStateMachine() throws Exception {
         AtomicReference<IndexerState> state = new AtomicReference<>(IndexerState.STOPPED);
         AtomicReference<IndexerState> state = new AtomicReference<>(IndexerState.STOPPED);
         final ExecutorService executor = Executors.newFixedThreadPool(1);
         final ExecutorService executor = Executors.newFixedThreadPool(1);
@@ -264,6 +265,7 @@ public class AsyncTwoPhaseIndexerTests extends ESTestCase {
         }
         }
     }
     }
 
 
+    @AwaitsFix( bugUrl = "https://github.com/elastic/elasticsearch/issues/42084")
     public void testStop_AfterIndexerIsFinished() throws InterruptedException {
     public void testStop_AfterIndexerIsFinished() throws InterruptedException {
         AtomicReference<IndexerState> state = new AtomicReference<>(IndexerState.STOPPED);
         AtomicReference<IndexerState> state = new AtomicReference<>(IndexerState.STOPPED);
         final ExecutorService executor = Executors.newFixedThreadPool(1);
         final ExecutorService executor = Executors.newFixedThreadPool(1);
@@ -283,6 +285,7 @@ public class AsyncTwoPhaseIndexerTests extends ESTestCase {
         }
         }
     }
     }
 
 
+    @AwaitsFix( bugUrl = "https://github.com/elastic/elasticsearch/issues/42084")
     public void testStop_WhileIndexing() throws InterruptedException {
     public void testStop_WhileIndexing() throws InterruptedException {
         AtomicReference<IndexerState> state = new AtomicReference<>(IndexerState.STOPPED);
         AtomicReference<IndexerState> state = new AtomicReference<>(IndexerState.STOPPED);
         final ExecutorService executor = Executors.newFixedThreadPool(1);
         final ExecutorService executor = Executors.newFixedThreadPool(1);