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

(cherry picked from commit 39c1ea1ed4)
This commit is contained in:
Weiwei Yang 2018-09-13 22:21:35 +08:00
parent c879ca38de
commit a7b1d1e006
1 changed files with 1 additions and 1 deletions

View File

@ -315,8 +315,8 @@ public class NodeStatusUpdaterImpl extends AbstractService implements
statusUpdater.join(); statusUpdater.join();
registerWithRM(); registerWithRM();
statusUpdater = new Thread(statusUpdaterRunnable, "Node Status Updater"); statusUpdater = new Thread(statusUpdaterRunnable, "Node Status Updater");
statusUpdater.start();
this.isStopped = false; this.isStopped = false;
statusUpdater.start();
LOG.info("NodeStatusUpdater thread is reRegistered and restarted"); LOG.info("NodeStatusUpdater thread is reRegistered and restarted");
} catch (Exception e) { } catch (Exception e) {
String errorMessage = "Unexpected error rebooting NodeStatusUpdater"; String errorMessage = "Unexpected error rebooting NodeStatusUpdater";