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