|
@@ -1178,11 +1178,15 @@ public class MRAppMaster extends CompositeService {
|
|
startJobs();
|
|
startJobs();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ protected void shutdownTaskLog() {
|
|
|
|
+ TaskLog.syncLogsShutdown(logSyncer);
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public void stop() {
|
|
public void stop() {
|
|
super.stop();
|
|
super.stop();
|
|
- TaskLog.syncLogsShutdown(logSyncer);
|
|
|
|
|
|
+ shutdownTaskLog();
|
|
}
|
|
}
|
|
|
|
|
|
private boolean isRecoverySupported() throws IOException {
|
|
private boolean isRecoverySupported() throws IOException {
|
|
@@ -1686,10 +1690,14 @@ public class MRAppMaster extends CompositeService {
|
|
T call(Configuration conf) throws Exception;
|
|
T call(Configuration conf) throws Exception;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ protected void shutdownLogManager() {
|
|
|
|
+ LogManager.shutdown();
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
protected void serviceStop() throws Exception {
|
|
protected void serviceStop() throws Exception {
|
|
super.serviceStop();
|
|
super.serviceStop();
|
|
- LogManager.shutdown();
|
|
|
|
|
|
+ shutdownLogManager();
|
|
}
|
|
}
|
|
|
|
|
|
public ClientService getClientService() {
|
|
public ClientService getClientService() {
|