HDDS-1331. In DatanodeStateMachine join check for not null.
This commit is contained in:
parent
6a34c9bb29
commit
128dd91e10
@ -363,9 +363,14 @@ public void triggerHeartbeat() {
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
public void join() throws InterruptedException {
|
||||
if (stateMachineThread != null) {
|
||||
stateMachineThread.join();
|
||||
}
|
||||
|
||||
if (cmdProcessThread != null) {
|
||||
cmdProcessThread.join();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop the daemon thread of the datanode state machine.
|
||||
|
Loading…
Reference in New Issue
Block a user