You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Xu Shao Hong (Jira)" <ji...@apache.org> on 2021/01/15 10:01:00 UTC

[jira] [Created] (HDDS-4710) Pipeline: chooseDatanodes function random pick not working

Xu Shao Hong created HDDS-4710:
----------------------------------

             Summary: Pipeline: chooseDatanodes function  random pick not working
                 Key: HDDS-4710
                 URL: https://issues.apache.org/jira/browse/HDDS-4710
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Xu Shao Hong
             Fix For: 1.1.0
         Attachments: image-2021-01-15-17-46-31-492.png

I was trying to configure a four-node cluster to test SCM HA, after configuring the ozone.datanode.pipeline.limit to 3 and 5 separately, the pipeline existed only chose three data nodes, the fourth node was never chosen.(They are equal nodes)

The bug here is due to that the method *{color:#172b4d}+chooseDatanodes+{color}* in PipelinePlacementPolicy calls *+super.getResultSet+*, in which another method +{color:#172b4d}*chooseNode*{color}+ is called. This +*chooseNode*+ method is an abstract method in the superclass and is overridden in PipelinePlacementPolicy. The overridden version uses a simple logic instead of a randomly chosen policy which incurs my problem.

I will attempt to fix it and attach my pr link ~ !image-2021-01-15-17-46-31-492.png!

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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