Re: How the ack sent back to upstream of a pipeline when write data to HDFS

2015-03-20 Thread Charles Lamb
On 3/17/2015 10:53 AM, xiaohe lan wrote: Hi Charles, Thanks for pointing me to the doc, it really helps me a lot. I am confused by another problem when I read DFSOutputStream.java. When packets a block are being sent through the pipeline, why DataStreamer will wait for all acks of the packets

Re: How the ack sent back to upstream of a pipeline when write data to HDFS

2015-03-17 Thread xiaohe lan
Hi Charles, Thanks for pointing me to the doc, it really helps me a lot. I am confused by another problem when I read DFSOutputStream.java. When packets a block are being sent through the pipeline, why DataStreamer will wait for all acks of the packets are received before the last packet is sent

Re: How the ack sent back to upstream of a pipeline when write data to HDFS

2015-03-13 Thread Charles Lamb
On 3/13/2015 7:55 AM, xiaohe lan wrote: Hi experts, When HDFS client sends a packet of data to a DN in the pipeline, the packet will then be sent to the next DN in the pipeline. What confuses me is when the ack from a DN in the pipeline will be sent back ? In which order ? It is sent from the la

How the ack sent back to upstream of a pipeline when write data to HDFS

2015-03-13 Thread xiaohe lan
Hi experts, When HDFS client sends a packet of data to a DN in the pipeline, the packet will then be sent to the next DN in the pipeline. What confuses me is when the ack from a DN in the pipeline will be sent back ? In which order ? It is sent from the last to first or in other ways ? Thanks, Xi