This is an automated email from the ASF dual-hosted git repository.
lidongdai 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 0b7b6d4 [bug-3480][server]fix ds muti-level directory in zk, which
lead to fa… (#3532)
0b7b6d4 is described below
commit 0b7b6d4e2a600bb3af36363c4814da6b169317bf
Author: XiaotaoYi <[email protected]>
AuthorDate: Tue Aug 18 07:09:39 2020 +0800
[bug-3480][server]fix ds muti-level directory in zk, which lead to fa…
(#3532)
* [bug-3480][server]fix ds muti-level directory in zk, which lead to fail
to assign work
* miss whitespace for if statement
---
.../apache/dolphinscheduler/server/registry/ZookeeperNodeManager.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/registry/ZookeeperNodeManager.java
b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/registry/ZookeeperNodeManager.java
index f039fb5..b1a5ede 100644
---
a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/registry/ZookeeperNodeManager.java
+++
b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/registry/ZookeeperNodeManager.java
@@ -151,10 +151,10 @@ public class ZookeeperNodeManager implements
InitializingBean {
private String parseGroup(String path){
String[] parts = path.split("\\/");
- if(parts.length != 6){
+ if (parts.length < 6) {
throw new IllegalArgumentException(String.format("worker group
path : %s is not valid, ignore", path));
}
- String group = parts[4];
+ String group = parts[parts.length - 2];
return group;
}
}