HDFS-16241. Standby close reconstruction thread (#3493)
Co-authored-by: zhanghuazong <Zhz@20068867> (cherry picked from commit88d8c3d0c8
) (cherry picked from commita35a6ec06b
)
This commit is contained in:
parent
675712afa3
commit
88744b8a04
|
@ -3562,7 +3562,7 @@ public class BlockManager implements BlockStatsMXBean {
|
|||
/*
|
||||
* Stop the ongoing initialisation of reconstruction queues
|
||||
*/
|
||||
private void stopReconstructionInitializer() {
|
||||
public void stopReconstructionInitializer() {
|
||||
if (reconstructionQueuesInitializer != null) {
|
||||
reconstructionQueuesInitializer.interrupt();
|
||||
try {
|
||||
|
|
|
@ -1365,8 +1365,11 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|||
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();
|
||||
|
|
Loading…
Reference in New Issue