Browse Source

fix zk monitor bug

pull/2/head
loushang 5 years ago
parent
commit
b549ee3901
  1. 3
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/MonitorService.java

3
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/MonitorService.java

@ -119,8 +119,9 @@ public class MonitorService extends BaseService{
public List<Server> getServerListFromZK(boolean isMaster){
checkNotNull(zookeeperMonitor);
ZKNodeType zkNodeType = isMaster ? ZKNodeType.MASTER : ZKNodeType.WORKER;
return checkNotNull(zookeeperMonitor).getServersList(zkNodeType);
return zookeeperMonitor.getServersList(zkNodeType);
}
}

Loading…
Cancel
Save