YARN-4205. Addendum patch to fix branch-2.
This commit is contained in:
parent
cf954d7a48
commit
919c0802fa
|
@ -100,7 +100,10 @@ public class RMAppLifetimeMonitor
|
|||
ApplicationTimeoutType timeoutType, long monitorStartTime, long timeout) {
|
||||
RMAppToMonitor appToMonitor = new RMAppToMonitor(appId, timeoutType);
|
||||
register(appToMonitor, monitorStartTime);
|
||||
monitoredApps.putIfAbsent(appToMonitor, timeout);
|
||||
Long oldTimeout = monitoredApps.get(appToMonitor);
|
||||
if (oldTimeout == null) {
|
||||
monitoredApps.put(appToMonitor, timeout);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue