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

Jing Zhao commented on HDFS-7854:
---------------------------------

Thanks for the response, Bo. For 5&6, after separating DataStreamer out, 
DFSOutputStream should not know/use the dataQueue anymore, since this is the 
internal details hidden inside of DataStreamer. Instead, DataStreamer should 
define {{queueCurrentPacket}} and {{waitAndQueueCurrentPacket}} methods for 
DFSOutputStream. My earlier 
[patch|https://issues.apache.org/jira/secure/attachment/12698643/HDFS-7793.000.patch]
 also demos this idea.

> Separate class DataStreamer out of DFSOutputStream
> --------------------------------------------------
>
>                 Key: HDFS-7854
>                 URL: https://issues.apache.org/jira/browse/HDFS-7854
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Li Bo
>            Assignee: Li Bo
>         Attachments: HDFS-7854-001.patch, HDFS-7854-002.patch, 
> HDFS-7854-003.patch
>
>
> This sub task separate DataStreamer from DFSOutputStream. New DataStreamer 
> will accept packets and write them to remote datanodes.



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

Reply via email to