Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.7.0
Description
HDFS fs.Open synchronizes on the Peercache, even when peer cache is disabled.
public synchronized Peer get(DatanodeID dnId, boolean isDomain) { if (capacity <= 0) { // disabled return null; }
since capacity is a final, this could be moved outside the lock.