zhangguolihen opened a new issue #1584: [BUG] The method getserverlistfromzk of 
zookeepermonitor in monitorservice cannot be re instantiated, otherwise there 
is a problem in getting ZK connection
URL: https://github.com/apache/incubator-dolphinscheduler/issues/1584
 
 
   *For better global communication, please give priority to using English 
description, thx! *
   
   **Describe the bug**
   The method getserverlistfromzk of zookeepermonitor in monitorservice cannot 
be re instantiated, otherwise there is a problem in getting ZK connection
   
   **Expected behavior**
     
   
   **Which version of Dolphin Scheduler:**
    -[1.2.1-SNAPSHOT-dev]
   
   **Additional context**
   Server monitoring is not available
   
   **Requirement or improvement
   public List<Server> getServerListFromZK(boolean isMaster){
       List<Server> servers = new ArrayList<>();
       try{
         ZKNodeType zkNodeType = isMaster ? ZKNodeType.MASTER : 
ZKNodeType.WORKER;
         servers = zookeeperMonitor.getServersList(zkNodeType);
       }catch (Exception e){
         throw e;
       }
       return servers;
     }
   

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


With regards,
Apache Git Services

Reply via email to