Skip to content

[Feature] Zookeeper node connectTimeout url parameter support #15824

@action2013

Description

@action2013

Pre-check

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

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Apache Dubbo Component

Java SDK (apache/dubbo)

Descriptions

zookeeper registry address set parameter timeout = 600000Ms not effect,after 15000Ms connect timeout report exception:

[2025-12-04 17:58:40,221] [ERROR] [Curator-Framework-0] [o.a.c.f.i.CuratorFrameworkImpl:617] - Background retry gave up
org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss
        at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:840) [curator-framework-5.8.0.jar!/:5.8.0]
        at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:795) [curator-framework-5.8.0.jar!/:5.8.0]
        at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:77) [curator-framework-5.8.0.jar!/:5.8.0]
        at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:315) [curator-framework-5.8.0.jar!/:5.8.0]
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.base/java.lang.Thread.run(Thread.java:842) [?:?]

Can the CuratorFrameworkUtils#buildCuratorFramework method set the timeout parameter in the URL to builder.connectionTimeoutMs? Currently, its default value is 15000ms:

Image

Related issues

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions