dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] [Registry] RegistryClient.cleanHistoryFailoverFinishedNodes uses child node name as full path -> Curator "Path must start with /"

Open zhangyuewen12 opened this issue 8 months ago • 1 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

What happened

DolphinScheduler: 3.3.2 Registry: ZooKeeper (Curator) Component: Worker startup / RegistryClient init JDK: 1.8 Failed to clean the failoverFinishedNode: xxxx org.apache.dolphinscheduler.registry.api.RegistryException: zookeeper get data error Caused by: java.lang.IllegalArgumentException: Path must start with / character at org.apache.curator.utils.PathUtils.validatePath(PathUtils.java:55) at org.apache.curator.framework.imps.GetDataBuilderImpl.forPath(GetDataBuilderImpl.java:296) at org.apache.dolphinscheduler.plugin.registry.zookeeper.ZookeeperRegistry.get(ZookeeperRegistry.java:156) at org.apache.dolphinscheduler.registry.api.RegistryClient.cleanHistoryFailoverFinishedNodes(RegistryClient.java:246)

What you expected to happen

ZookeeperRegistry.children(parentPath) calls Curator getChildren().forPath(parentPath) which returns child node names only, not full paths.

How to reproduce

  1. Use ZooKeeper registry.

  2. Ensure RegistryNodeType.FAILOVER_FINISH_NODES.getRegistryPath() exists and has at least one child node (e.g. 10.23.0.1:1234-1773105368857-30370).

  3. Start Worker (or any process that initializes RegistryClient).

  4. Observe the exception during RegistryClient initialization cleanup.

Anything else

No response

Version

3.3.2

Are you willing to submit PR?

  • [x] Yes I am willing to submit a PR!

Code of Conduct

zhangyuewen12 avatar Mar 12 '26 05:03 zhangyuewen12

Duplicated with #17527

SbloodyS avatar Mar 12 '26 07:03 SbloodyS