adoroszlai opened a new pull request #1610:
URL: https://github.com/apache/ozone/pull/1610


   ## What changes were proposed in this pull request?
   
   `KeyManagerImpl#listStatus` and the `sortDatanodeInPipeline` helper method 
sort datanodes using individual RPC call for each key location info.
   
   Improvements in this change:
   
   1. Process only the "latest" location version instead of all versions.  If I 
understand correctly, only the "latest" version is used for read.
   2. Keep track of processed pipelines.  If another key or location refers to 
the same pipeline, avoid repeating the query.
   
   Possible improvement left for later: send a single `sortDatanodes` request 
for all datanodes in all relevant pipelines, then create the per-pipeline lists 
locally.
   
   https://issues.apache.org/jira/browse/HDDS-4473
   
   ## How was this patch tested?
   
   Added unit test for `sortDatanodes` and added check in existing test case 
for `listStatus`.


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

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