hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7266) HDFS Peercache enabled check should not lock on object
Date Mon, 20 Oct 2014 19:51:34 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Colin Patrick McCabe updated HDFS-7266:
---------------------------------------
    Status: Patch Available  (was: Open)

> 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
>            Assignee: Andrew Wang
>              Labels: multi-threading
>         Attachments: dfs-open-10-threads.png, hdfs-7266.001.patch
>
>
> 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)

Mime
View raw message