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:
parent
c879ca38de
commit
a7b1d1e006
|
@ -315,8 +315,8 @@ public class NodeStatusUpdaterImpl extends AbstractService implements
|
|||
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";
|
||||
|
|
Loading…
Reference in New Issue