HDFS-4768. Merge 1476579 from trunk.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1476581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8f151832cc
commit
091e5df455
|
@ -213,6 +213,9 @@ Release 2.0.5-beta - UNRELEASED
|
|||
HDFS-4745. TestDataTransferKeepalive#testSlowReader has race condition that
|
||||
causes sporadic failure. (Chris Nauroth via suresh)
|
||||
|
||||
HDFS-4768. File handle leak in datanode when a block pool is removed.
|
||||
(Chris Nauroth via suresh)
|
||||
|
||||
Release 2.0.4-alpha - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -267,7 +267,10 @@ public class DataBlockScanner implements Runnable {
|
|||
}
|
||||
|
||||
public synchronized void removeBlockPool(String blockPoolId) {
|
||||
blockPoolScannerMap.remove(blockPoolId);
|
||||
BlockPoolSliceScanner bpss = blockPoolScannerMap.remove(blockPoolId);
|
||||
if (bpss != null) {
|
||||
bpss.shutdown();
|
||||
}
|
||||
LOG.info("Removed bpid="+blockPoolId+" from blockPoolScannerMap");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue