Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HDFS-16241. Standby close reconstruction thread (apache#3493)
Browse files Browse the repository at this point in the history
Co-authored-by: zhanghuazong <Zhz@20068867>
2 people authored and HarshitGupta11 committed Nov 28, 2022
1 parent d37cc21 commit c131262
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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 {
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit c131262

Please sign in to comment.