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 0c8aab690c
commit 4e105a4b9b
1 changed files with 1 additions and 1 deletions

View File

@ -311,8 +311,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";