ckj996 commented on pull request #2452:
URL: https://github.com/apache/ozone/pull/2452#issuecomment-885365975


   > One more question, whats the use of stream init, and how is it different 
from the first data packet to be sent from client to the datanode ?
   
   Stream init do 2 things: build the stream pipeline, and get a file path from 
the container for subsequent writes.
   
   Ratis: Build the stream pipeline according to the routing table. If no 
routing table is given, it will fallback to
   
   ```
   Client -----> Primary -----> Secondary 1
                    |
                    +---------> Secondary 2
   ```
   
   HDDS Container: prepare a file for write, but does not write any data. In 
our POC code, we let the ContainerStateMachine calculate the path of that file 
as if there is a WriteChunk request.
   
   ---
   
   The first data packet, of course, write data into that file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to