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

Tsz Wo Nicholas Sze commented on HDFS-7358:
-------------------------------------------

> ... (Should + one.releaseBuffer(byteArrayManager); be inside a finally 
> block?) ...

You make a good point that the array may not be released when the pipeline 
eventually fails.  We cannot call releaseBuffer(..) in a finally block since, 
for the usual error cases, client will reconstruct the pipeline and retry 
sending the same packets.  I will think about how to fix it.

> 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
>
>
> [~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