hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhruba borthakur (JIRA)" <j...@apache.org>
Subject [jira] Created: (HDFS-1605) Convert DFSInputStream synchronized sections to a ReadWrite lock
Date Sun, 30 Jan 2011 08:05:44 GMT
Convert DFSInputStream synchronized sections to a ReadWrite lock
----------------------------------------------------------------

                 Key: HDFS-1605
                 URL: https://issues.apache.org/jira/browse/HDFS-1605
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: hdfs client
            Reporter: dhruba borthakur
            Assignee: dhruba borthakur


Hbase does concurrent preads from multiple threads to different blocks of the same hdfs file.
Each of these pread calls invoke DFSInputStream.getFileLength() and DFSInputStream.getBlockAt().
These methods are "synchronized", thus causing all the concurrent threads to serialize. It
would help performance to convert this to a Read/Write lock

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message