File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
core/src/test/java/org/elasticsearch/discovery/zen Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3939import org .elasticsearch .cluster .routing .TestShardRouting ;
4040import org .elasticsearch .cluster .routing .UnassignedInfo ;
4141import org .elasticsearch .cluster .service .MasterService ;
42+ import org .elasticsearch .common .Priority ;
4243import org .elasticsearch .common .settings .Settings ;
4344import org .elasticsearch .common .unit .TimeValue ;
4445import org .elasticsearch .common .util .concurrent .AbstractRunnable ;
@@ -608,7 +609,8 @@ public void testRejectingJoinWithIncompatibleVersion() throws InterruptedExcepti
608609
609610 CountDownLatch latch = new CountDownLatch (1 );
610611 // block cluster state
611- masterService .submitStateUpdateTask ("test" , new ClusterStateUpdateTask () {
612+ masterService .submitStateUpdateTask ("test" , new ClusterStateUpdateTask (Priority .IMMEDIATE ) {
613+
612614 @ Override
613615 public ClusterState execute (ClusterState currentState ) throws Exception {
614616 latch .await ();
@@ -654,7 +656,7 @@ public void testRejectingJoinWithIncompatibleVersionWithUnrecoveredState() throw
654656
655657 CountDownLatch latch = new CountDownLatch (1 );
656658 // block cluster state
657- masterService .submitStateUpdateTask ("test" , new ClusterStateUpdateTask () {
659+ masterService .submitStateUpdateTask ("test" , new ClusterStateUpdateTask (Priority . IMMEDIATE ) {
658660 @ Override
659661 public ClusterState execute (ClusterState currentState ) throws Exception {
660662 latch .await ();
You can’t perform that action at this time.
0 commit comments