Skip to content

Commit

Permalink
HDFS-16241. Standby close reconstruction thread (#3493)
Browse files Browse the repository at this point in the history
Co-authored-by: zhanghuazong <Zhz@20068867>
  • Loading branch information
langlaile1221 and zhanghuazong authored Oct 11, 2021
1 parent b1ad4ea commit 88d8c3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3647,7 +3647,7 @@ public void run() {
/*
* Stop the ongoing initialisation of reconstruction queues
*/
private void stopReconstructionInitializer() {
public void stopReconstructionInitializer() {
if (reconstructionQueuesInitializer != null) {
reconstructionQueuesInitializer.interrupt();
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1458,8 +1458,11 @@ void stopActiveServices() {
LOG.info("Stopping services started for active state");
writeLock();
try {
if (blockManager != null && blockManager.getSPSManager() != null) {
blockManager.getSPSManager().stop();
if (blockManager != null) {
blockManager.stopReconstructionInitializer();
if (blockManager.getSPSManager() != null) {
blockManager.getSPSManager().stop();
}
}
stopSecretManager();
leaseManager.stopMonitor();
Expand Down

0 comments on commit 88d8c3d

Please sign in to comment.