File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -559,6 +559,9 @@ Release 2.8.0 - UNRELEASED
559559 YARN-3745. SerializedException should also try to instantiate internal
560560 exception with the default constructor. (Lavkesh Lahngir via devaraj)
561561
562+ YARN-2871. TestRMRestart#testRMRestartGetApplicationList sometime fails in trunk.
563+ (zhihai xu via xgong)
564+
562565Release 2.7.1 - UNRELEASED
563566
564567 INCOMPATIBLE CHANGES
Original file line number Diff line number Diff line change 2121import static org .mockito .Matchers .isA ;
2222import static org .mockito .Mockito .mock ;
2323import static org .mockito .Mockito .spy ;
24+ import static org .mockito .Mockito .timeout ;
2425import static org .mockito .Mockito .times ;
2526import static org .mockito .Mockito .verify ;
2627import static org .mockito .Mockito .when ;
@@ -976,9 +977,10 @@ protected RMAppManager createRMAppManager() {
976977 List <ApplicationReport > appList2 = response2 .getApplicationList ();
977978 Assert .assertTrue (3 == appList2 .size ());
978979
979- // check application summary is logged for the completed apps after RM restart.
980- verify (rm2 .getRMAppManager (), times (3 )).logApplicationSummary (
981- isA (ApplicationId .class ));
980+ // check application summary is logged for the completed apps with timeout
981+ // to make sure APP_COMPLETED events are processed, after RM restart.
982+ verify (rm2 .getRMAppManager (), timeout (1000 ).times (3 )).
983+ logApplicationSummary (isA (ApplicationId .class ));
982984 }
983985
984986 private MockAM launchAM (RMApp app , MockRM rm , MockNM nm )
You can’t perform that action at this time.
0 commit comments