You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Gopal V (JIRA)" <ji...@apache.org> on 2014/10/20 16:11:33 UTC
[jira] [Created] (HDFS-7266) HDFS Peercache enabled check should
not lock on object
Gopal V created HDFS-7266:
-----------------------------
Summary: HDFS Peercache enabled check should not lock on object
Key: HDFS-7266
URL: https://issues.apache.org/jira/browse/HDFS-7266
Project: Hadoop HDFS
Issue Type: Bug
Components: hdfs-client
Affects Versions: 2.6.0
Reporter: Gopal V
Attachments: dfs-open-10-threads.png
HDFS fs.Open synchronizes on the Peercache, even when peer cache is disabled.
{code}
public synchronized Peer get(DatanodeID dnId, boolean isDomain) {
if (capacity <= 0) { // disabled
return null;
}
{code}
since capacity is a final, this could be moved outside the lock.
!dfs-open-10-threads.png!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)