File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2222import java .io .File ;
2323import java .nio .file .Files ;
2424import java .util .UUID ;
25+ import java .util .concurrent .TimeUnit ;
2526import java .util .function .Supplier ;
2627import org .apache .hadoop .test .GenericTestUtils ;
2728import org .apache .hadoop .util .concurrent .SubjectInheritingThread ;
3334import static org .junit .jupiter .api .Assertions .assertNotNull ;
3435import static org .junit .jupiter .api .Assertions .assertTrue ;
3536import static org .junit .jupiter .api .Assertions .fail ;
37+ import static org .junit .jupiter .api .Timeout .ThreadMode .SEPARATE_THREAD ;
3638
3739import java .io .IOException ;
3840import java .net .InetSocketAddress ;
@@ -475,6 +477,7 @@ public synchronized void startInternal() throws Exception {
475477 }
476478
477479 @ Test
480+ @ Timeout (value =60 , unit = TimeUnit .SECONDS , threadMode = SEPARATE_THREAD )
478481 public void testTransitionedToStandbyShouldNotHang () throws Exception {
479482 configuration .setBoolean (YarnConfiguration .AUTO_FAILOVER_ENABLED , false );
480483 Configuration conf = new YarnConfiguration (configuration );
@@ -611,7 +614,7 @@ protected void serviceStart() throws Exception {
611614 }
612615
613616 @ Test
614- @ Timeout (value = 9000 )
617+ @ Timeout (value = 9000 ) // FIXME that's more than two hours
615618 public void testTransitionedToActiveRefreshFail () throws Exception {
616619 configuration .setBoolean (YarnConfiguration .AUTO_FAILOVER_ENABLED , false );
617620 rm = new MockRM (configuration ) {
You can’t perform that action at this time.
0 commit comments