YARN-8729. Node status updater thread could be lost after it is restarted. Contributed by Tao Yang.

This commit is contained in:
Weiwei Yang 2018-09-13 22:21:35 +08:00
parent c9e0b69ab3
commit 39c1ea1ed4

View File

@ -326,8 +326,8 @@ protected void rebootNodeStatusUpdaterAndRegisterWithRM() {
statusUpdater.join();
registerWithRM();
statusUpdater = new Thread(statusUpdaterRunnable, "Node Status Updater");
statusUpdater.start();
this.isStopped = false;
statusUpdater.start();
LOG.info("NodeStatusUpdater thread is reRegistered and restarted");
} catch (Exception e) {
String errorMessage = "Unexpected error rebooting NodeStatusUpdater";