YARN-9222. Print launchTime in ApplicationSummary
(cherry picked from commit6cace58e21
) (cherry picked from commitbf760e7e81
)
This commit is contained in:
parent
b63941516f
commit
6092d913b1
|
@ -184,6 +184,7 @@ public class RMAppManager implements EventHandler<RMAppManagerEvent>,
|
|||
.add("appMasterHost", host)
|
||||
.add("submitTime", app.getSubmitTime())
|
||||
.add("startTime", app.getStartTime())
|
||||
.add("launchTime", app.getLaunchTime())
|
||||
.add("finishTime", app.getFinishTime())
|
||||
.add("finalStatus", app.getFinalApplicationStatus())
|
||||
.add("memorySeconds", metrics.getMemorySeconds())
|
||||
|
|
|
@ -997,6 +997,7 @@ public class TestAppManager{
|
|||
when(app.getState()).thenReturn(RMAppState.RUNNING);
|
||||
when(app.getApplicationType()).thenReturn("MAPREDUCE");
|
||||
when(app.getSubmitTime()).thenReturn(1000L);
|
||||
when(app.getLaunchTime()).thenReturn(2000L);
|
||||
Map<String, Long> resourceSecondsMap = new HashMap<>();
|
||||
resourceSecondsMap.put(ResourceInformation.MEMORY_MB.getName(), 16384L);
|
||||
resourceSecondsMap.put(ResourceInformation.VCORES.getName(), 64L);
|
||||
|
@ -1017,6 +1018,7 @@ public class TestAppManager{
|
|||
assertTrue(msg.contains("Multiline" + escaped +"UserName"));
|
||||
assertTrue(msg.contains("Multiline" + escaped +"QueueName"));
|
||||
assertTrue(msg.contains("submitTime=1000"));
|
||||
assertTrue(msg.contains("launchTime=2000"));
|
||||
assertTrue(msg.contains("memorySeconds=16384"));
|
||||
assertTrue(msg.contains("vcoreSeconds=64"));
|
||||
assertTrue(msg.contains("preemptedAMContainers=1"));
|
||||
|
|
Loading…
Reference in New Issue