Skip to content

Commit

Permalink
HADOOP-19337. Fix ZKFailoverController NPE issue due to integer overf…
Browse files Browse the repository at this point in the history
…low in parseInt when initHM. (#7165). Contributed by ConfX.

Co-authored-by: saadsheralam <[email protected]>
Signed-off-by: He Xiaoqiao <[email protected]>
  • Loading branch information
teamconfx and saadsheralam authored Dec 8, 2024
1 parent 93a4dd0 commit de8b506
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,11 @@ private int doRun(String[] args)
rpcServer.stopAndJoin();

elector.quitElection(true);
healthMonitor.shutdown();
healthMonitor.join();

if (healthMonitor != null) {
healthMonitor.shutdown();
healthMonitor.join();
}
}
return 0;
}
Expand Down

0 comments on commit de8b506

Please sign in to comment.