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

stack commented on HDFS-7358:
-----------------------------

bq. Packet#writeTo writes data from the buffer to the socket.

Yes. Could it release the buffer when it is done writing? Then could undo the 
synchronizations on Packet?

No biggie though. The extra synchronization barely shows in my macro numbers 
posted above.

bq. Do you think the patch is good to go?

It fixes the reported issue. +1.





> Clients may get stuck waiting when using ByteArrayManager
> ---------------------------------------------------------
>
>                 Key: HDFS-7358
>                 URL: https://issues.apache.org/jira/browse/HDFS-7358
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>         Attachments: h7358_20141104.patch, h7358_20141104_wait_timeout.patch, 
> h7358_20141105.patch, h7358_20141106.patch, h7358_20141107.patch, 
> h7358_20141108.patch
>
>
> [~stack] reported that clients might get stuck waiting when using 
> ByteArrayManager; see [his 
> comments|https://issues.apache.org/jira/browse/HDFS-7276?focusedCommentId=14197036&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14197036].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to