HDFS-16241. Standby close reconstruction thread (#3493)
Co-authored-by: zhanghuazong <Zhz@20068867>
(cherry picked from commit 88d8c3d0c8
)
This commit is contained in:
parent
038fa67db4
commit
a35a6ec06b
|
@ -3608,7 +3608,7 @@ public class BlockManager implements BlockStatsMXBean {
|
||||||
/*
|
/*
|
||||||
* Stop the ongoing initialisation of reconstruction queues
|
* Stop the ongoing initialisation of reconstruction queues
|
||||||
*/
|
*/
|
||||||
private void stopReconstructionInitializer() {
|
public void stopReconstructionInitializer() {
|
||||||
if (reconstructionQueuesInitializer != null) {
|
if (reconstructionQueuesInitializer != null) {
|
||||||
reconstructionQueuesInitializer.interrupt();
|
reconstructionQueuesInitializer.interrupt();
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1427,8 +1427,11 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
||||||
LOG.info("Stopping services started for active state");
|
LOG.info("Stopping services started for active state");
|
||||||
writeLock();
|
writeLock();
|
||||||
try {
|
try {
|
||||||
if (blockManager != null && blockManager.getSPSManager() != null) {
|
if (blockManager != null) {
|
||||||
blockManager.getSPSManager().stop();
|
blockManager.stopReconstructionInitializer();
|
||||||
|
if (blockManager.getSPSManager() != null) {
|
||||||
|
blockManager.getSPSManager().stop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stopSecretManager();
|
stopSecretManager();
|
||||||
leaseManager.stopMonitor();
|
leaseManager.stopMonitor();
|
||||||
|
|
Loading…
Reference in New Issue