This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 8090f14 get root path from zookeeper config
new 0a39541 Merge pull request #1699 from lgcareer/dev-taskqueue
8090f14 is described below
commit 8090f1450471f02868569f3f6c43f0e22788eb1d
Author: lgcareer <[email protected]>
AuthorDate: Fri Jan 3 18:05:00 2020 +0800
get root path from zookeeper config
---
.../java/org/apache/dolphinscheduler/common/queue/TaskQueueZkImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/queue/TaskQueueZkImpl.java
b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/queue/TaskQueueZkImpl.java
index 45c6122..03a6064 100644
---
a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/queue/TaskQueueZkImpl.java
+++
b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/queue/TaskQueueZkImpl.java
@@ -344,7 +344,7 @@ public class TaskQueueZkImpl implements ITaskQueue {
* @return
*/
public String getTasksPath(String key){
- return "/dolphinscheduler" + Constants.SINGLE_SLASH + key;
+ return zookeeperOperator.getZookeeperConfig().getDsRoot() +
Constants.SINGLE_SLASH + key;
}
}