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>
(cherry picked from commit 88d8c3d)
(cherry picked from commit a35a6ec)
  • Loading branch information
langlaile1221 authored and jojochuang committed Oct 11, 2021
1 parent 675712a commit 88744b8
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 @@ -3562,7 +3562,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 @@ -1365,8 +1365,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 88744b8

Please sign in to comment.