[ 
https://issues.apache.org/jira/browse/HDFS-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866519#action_12866519
 ] 

Todd Lipcon commented on HDFS-941:
----------------------------------

I'd like to hold off on this just a bit longer yet - I'm seeing this 
sporadically in my testing:

Caused by: java.lang.IndexOutOfBoundsException
        at org.apache.hadoop.fs.FSInputChecker.read(FSInputChecker.java:151)
        at 
org.apache.hadoop.hdfs.DFSClient$BlockReader.read(DFSClient.java:1155)
        at 
org.apache.hadoop.fs.FSInputChecker.readFully(FSInputChecker.java:384)
        at 
org.apache.hadoop.hdfs.DFSClient$BlockReader.readAll(DFSClient.java:1441)
        at 
org.apache.hadoop.hdfs.DFSClient$DFSInputStream.fetchBlockByteRange(DFSClient.java:1913)
        at 
org.apache.hadoop.hdfs.DFSClient$DFSInputStream.read(DFSClient.java:2035)
        at 
org.apache.hadoop.fs.FSDataInputStream.read(FSDataInputStream.java:46)

But the above benchmarks do show that the idea has a lot of promise! (and the 
above trace may in fact be an HBase bug)

> Datanode xceiver protocol should allow reuse of a connection
> ------------------------------------------------------------
>
>                 Key: HDFS-941
>                 URL: https://issues.apache.org/jira/browse/HDFS-941
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: data-node, hdfs client
>    Affects Versions: 0.22.0
>            Reporter: Todd Lipcon
>            Assignee: bc Wong
>         Attachments: HDFS-941-1.patch, HDFS-941-2.patch, HDFS-941-3.patch, 
> HDFS-941-3.patch, HDFS-941-4.patch
>
>
> Right now each connection into the datanode xceiver only processes one 
> operation.
> In the case that an operation leaves the stream in a well-defined state (eg a 
> client reads to the end of a block successfully) the same connection could be 
> reused for a second operation. This should improve random read performance 
> significantly.

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

Reply via email to