Pre-check

  • [x] I am sure that all the content I provide is in English.

Search before asking

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

Apache Dubbo Component

Java Samples (apache/dubbo-samples)

Dubbo Version

Samples:apache/dubbo-samples:dubbo-samples-zookeeper-provider Dubbo: 3.3.0/3.3.1 zookeeper server: 3.4.10;

Steps to reproduce this issue

从 dubbo2 升级到 dubbo3:如果您当前正在使用的 Zookeeper Server 版本是 3.4.x 版本,则使用以下 starter: org.apache.dubbo dubbo-zookeeper-spring-boot-starter

What you expected to happen

2025-04-24T00:22:34.751+08:00 ERROR 32324 --- [tor-Framework-0] o.a.c.f.i.CuratorFrameworkImpl : Background exception was not retry-able or retry gave up

org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /dubbo at org.apache.zookeeper.KeeperException.create(KeeperException.java:106) ~[zookeeper-3.7.2.jar:3.7.2] at org.apache.zookeeper.KeeperException.create(KeeperException.java:54) ~[zookeeper-3.7.2.jar:3.7.2] at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1347) ~[zookeeper-3.7.2.jar:3.7.2] at org.apache.curator.utils.ZKPaths.mkdirs(ZKPaths.java:351) ~[curator-client-5.1.0.jar:?] at org.apache.curator.framework.imps.CreateBuilderImpl$8.performBackgroundOperation(CreateBuilderImpl.java:758) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.OperationAndData.callPerformBackgroundOperation(OperationAndData.java:84) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:974) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:952) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:66) ~[curator-framework-5.1.0.jar:5.1.0] at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:342) ~[curator-framework-5.1.0.jar:5.1.0] at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:317) ~[?:?] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java) ~[?:?] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1575) [?:?]

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • [ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

Comment From: heliang666s

If you use zk upper than 3.4.x, it would be better to use dubbo-dependencies-zookeeper-curator5.@jockercheng91

Comment From: songxiaosheng

Attempt to align the versions of the Zookeeper client and server: https://curator.apache.org/docs/zk-compatibility-34

Comment From: wukaixian

ZooKeeper 3.4.x needs to be used with Curator 4.2.x. However, starting from Dubbo 3.3.x, Curator 4.2.x is no longer supported. Therefore, the conclusion is that Dubbo 3.3.x no longer supports ZooKeeper 3.4.x.

Dubbo 3.3.x only retains the Curator5ZookeeperClient

Comment From: wukaixian

Dubbo

If you want to use ZooKeeper 3.4.x, please use Dubbo 3.2.x.

Comment From: bert82503

ZooKeeper 3.4.x needs to be used with Curator 4.2.x. However, starting from Dubbo 3.3.x, Curator 4.2.x is no longer supported. Therefore, the conclusion is that Dubbo 3.3.x no longer supports ZooKeeper 3.4.x.

Dubbo 3.3.x only retains the Curator5ZookeeperClient

Registration Center / Zookeeper https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/reference-manual/registry/zookeeper/

Image

Comment From: wukaixian

ZooKeeper 3.4.x needs to be used with Curator 4.2.x. However, starting from Dubbo 3.3.x, Curator 4.2.x is no longer supported. Therefore, the conclusion is that Dubbo 3.3.x no longer supports ZooKeeper 3.4.x. Dubbo 3.3.x only retains the Curator5ZookeeperClient

Registration Center / Zookeeper https://cn.dubbo.apache.org/en/docs3-v2/java-sdk/reference-manual/registry/zookeeper/

The docs you provided is too old. It's no longer applicable, at least not in Dubbo 3.3.x. You can check the source code of the Zookeeper registry — support for Zookeeper 3.4.x has already been removed in version 3.3.x,and only Curator 5 is retained.

zookeeper registry