Sfoglia il codice sorgente

YARN-4312. TestSubmitApplicationWithRMHA fails on branch-2.7 and branch-2.6 as some of the test cases time out. Contributed by Varun Saxena.

(cherry picked from commit 66364419118c64c9d1c623f808f027ac45688759)
Tsuyoshi Ozawa 9 anni fa
parent
commit
5a00b23106

+ 3 - 0
hadoop-yarn-project/CHANGES.txt

@@ -15,6 +15,9 @@ Release 2.6.3 - UNRELEASED
     YARN-2859. ApplicationHistoryServer binds to default port 8188 in MiniYARNCluster.
     YARN-2859. ApplicationHistoryServer binds to default port 8188 in MiniYARNCluster.
     (Vinod Kumar Vavilapalli via xgong)
     (Vinod Kumar Vavilapalli via xgong)
 
 
+    YARN-4312. TestSubmitApplicationWithRMHA fails on branch-2.7 and branch-2.6
+    as some of the test cases time out. (Varun Saxena via ozawa)
+
 Release 2.6.2 - 2015-10-28
 Release 2.6.2 - 2015-10-28
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 2 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestSubmitApplicationWithRMHA.java

@@ -224,7 +224,7 @@ public class TestSubmitApplicationWithRMHA extends RMHATestBase{
   // during SubmitApplication Call:
   // during SubmitApplication Call:
   // 1) RMStateStore already saved the ApplicationState when failover happens
   // 1) RMStateStore already saved the ApplicationState when failover happens
   // 2) RMStateStore did not save the ApplicationState when failover happens
   // 2) RMStateStore did not save the ApplicationState when failover happens
-  @Test (timeout = 5000)
+  @Test (timeout = 50000)
   public void
   public void
       testHandleRMHADuringSubmitApplicationCallWithSavedApplicationState()
       testHandleRMHADuringSubmitApplicationCallWithSavedApplicationState()
           throws Exception {
           throws Exception {
@@ -260,7 +260,7 @@ public class TestSubmitApplicationWithRMHA extends RMHATestBase{
     Assert.assertEquals(app1.getApplicationId(), app0.getApplicationId());
     Assert.assertEquals(app1.getApplicationId(), app0.getApplicationId());
   }
   }
 
 
-  @Test (timeout = 5000)
+  @Test (timeout = 50000)
   public void
   public void
       testHandleRMHADuringSubmitApplicationCallWithoutSavedApplicationState()
       testHandleRMHADuringSubmitApplicationCallWithoutSavedApplicationState()
           throws Exception {
           throws Exception {