YARN-5094. some YARN container events have timestamp of -1.
(cherry picked from commit 4aca4ff759
)
This commit is contained in:
parent
6c10e0e12b
commit
8793e45f53
|
@ -27,7 +27,7 @@ public class ApplicationEvent extends AbstractEvent<ApplicationEventType> {
|
|||
|
||||
public ApplicationEvent(ApplicationId appID,
|
||||
ApplicationEventType appEventType) {
|
||||
super(appEventType);
|
||||
super(appEventType, System.currentTimeMillis());
|
||||
this.applicationID = appID;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ public class ContainerEvent extends AbstractEvent<ContainerEventType> {
|
|||
private final ContainerId containerID;
|
||||
|
||||
public ContainerEvent(ContainerId cID, ContainerEventType eventType) {
|
||||
super(eventType);
|
||||
super(eventType, System.currentTimeMillis());
|
||||
this.containerID = cID;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.Reso
|
|||
public class LocalizationEvent extends AbstractEvent<LocalizationEventType> {
|
||||
|
||||
public LocalizationEvent(LocalizationEventType event) {
|
||||
super(event);
|
||||
super(event, System.currentTimeMillis());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -262,7 +262,8 @@ public class TestApplication {
|
|||
|
||||
verify(wa.localizerBus).handle(
|
||||
refEq(new ApplicationLocalizationEvent(
|
||||
LocalizationEventType.DESTROY_APPLICATION_RESOURCES, wa.app)));
|
||||
LocalizationEventType.DESTROY_APPLICATION_RESOURCES,
|
||||
wa.app), "timestamp"));
|
||||
|
||||
verify(wa.auxBus).handle(
|
||||
refEq(new AuxServicesEvent(
|
||||
|
@ -341,7 +342,8 @@ public class TestApplication {
|
|||
|
||||
verify(wa.localizerBus).handle(
|
||||
refEq(new ApplicationLocalizationEvent(
|
||||
LocalizationEventType.DESTROY_APPLICATION_RESOURCES, wa.app)));
|
||||
LocalizationEventType.DESTROY_APPLICATION_RESOURCES, wa.app),
|
||||
"timestamp"));
|
||||
|
||||
wa.appResourcesCleanedup();
|
||||
for ( Container container : wa.containers) {
|
||||
|
|
Loading…
Reference in New Issue