Browse Source

fix bug: zk hasTask method NPE (#1785)

pull/2/head
Yelli 5 years ago committed by qiaozhanwei
parent
commit
2ec9943f64
  1. 2
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/queue/TaskQueueZkImpl.java

2
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/queue/TaskQueueZkImpl.java

@ -83,7 +83,7 @@ public class TaskQueueZkImpl implements ITaskQueue {
@Override
public boolean hasTask(String key) {
try {
return zookeeperOperator.hasChildren(key);
return zookeeperOperator.hasChildren(getTasksPath(key));
} catch (Exception e) {
logger.error("check has task in tasks queue exception",e);
}

Loading…
Cancel
Save