mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 03:08:01 +08:00
fix invalid registry path ends with 'master' or 'worker' (#14328)
Co-authored-by: Zinway Liu <zinway.liu@ucloud.cn> Co-authored-by: Aaron Wang <wangweirao16@gmail.com>
This commit is contained in:
parent
7640c29495
commit
96041e3876
@ -210,11 +210,11 @@ public class RegistryClient {
|
||||
}
|
||||
|
||||
public boolean isMasterPath(String path) {
|
||||
return path != null && path.startsWith(RegistryNodeType.MASTER.getRegistryPath());
|
||||
return path != null && path.startsWith(RegistryNodeType.MASTER.getRegistryPath() + Constants.SINGLE_SLASH);
|
||||
}
|
||||
|
||||
public boolean isWorkerPath(String path) {
|
||||
return path != null && path.startsWith(RegistryNodeType.WORKER.getRegistryPath());
|
||||
return path != null && path.startsWith(RegistryNodeType.WORKER.getRegistryPath() + Constants.SINGLE_SLASH);
|
||||
}
|
||||
|
||||
public Collection<String> getChildrenKeys(final String key) {
|
||||
|
Loading…
Reference in New Issue
Block a user