bshashikant edited a comment on pull request #1371:
URL: https://github.com/apache/hadoop-ozone/pull/1371#issuecomment-704702172


   > @bshashikant Thanks for suggestions. Actually, RandomLeaderChoosePolicy 
does not choose datanode, it return null in 
[chooseLeader](https://github.com/apache/hadoop-ozone/blob/f573b4a8b45f4463f0bcb95971a45789bda91d5c/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/leader/choose/algorithms/RandomLeaderChoosePolicy.java#L40),
 then all the datanodes are assigned the [same 
priority](https://github.com/apache/hadoop-ozone/blob/f573b4a8b45f4463f0bcb95971a45789bda91d5c/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/protocol/commands/CreatePipelineCommand.java#L60),
 as what is currently. The name of RandomLeaderChoosePolicy seems confused, 
sorry for the misleading, do you have better name?
   
   i guess , this can be named as "DefaultLeaderChoosePolicy" and this should 
be made the default , until and unless we measure the performance with the 
minimumLeader election count policy and see the results. What do you think?
   
   


----------------------------------------------------------------
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:
us...@infra.apache.org



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

Reply via email to