ivandika3 opened a new pull request, #5666:
URL: https://github.com/apache/ozone/pull/5666

   ## What changes were proposed in this pull request?
   
   In the Write Pipeline V1 (Async), the topology of the write pipeline is not 
relevant since the write always go to the leader.
   
   However, with the support of Streaming Write Pipeline (Write Pipeline V2), 
the topology of the datanodes in the pipeline needs to be considered to build 
the optimal pipeline topology.
   
   This patch will support OM to pass clientMachineString to SCM to get the 
sorted datanodes. To sort the datanodes when allocating blocks, the RPC client 
is required to set `OmKeyArgs.Builder.setSortDatanodesInPipeline(true)` for OM 
to pass the client remote address to SCM when OM request to allocate blocks, 
which will sort the datanodes in the pipeline returned in `AllocatedBlock`. 
   
   Note: currently the `sortDatanodesInPipeline` flag is not set in any of the 
RPC client call, so no existiing behaviors are changed. 
https://github.com/apache/ozone/pull/5414 will set these flags for stream 
related requests (e.g. `createStreamKey` and `createStreamFile`).
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9767
   
   ## How was this patch tested?
   
   TODO
   


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