You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/07/23 03:02:24 UTC

[GitHub] [ozone] ckj996 commented on pull request #2452: HDDS-5480. [Ozone-Streaming] Client and server should support stream setup.

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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org