TeslaCN opened a new issue #15039:
URL: https://github.com/apache/shardingsphere/issues/15039


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   5.0.1-SNAPSHOT
   maybe ad2547199b0abab7c079abba934800be7f5a7b1e
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy 
   
   ### Expected behavior
   
   Proxy startup succeeded.
   
   ### Actual behavior
   
   ```
   [INFO ] 2022-01-25 10:42:56.399 [main] o.a.c.f.imps.CuratorFrameworkImpl - 
Starting
   [INFO ] 2022-01-25 10:43:16.538 [main] org.apache.zookeeper.ZooKeeper - 
Client 
environment:zookeeper.version=3.6.0--b4c89dc7f6083829e18fae6e446907ae0b1f22d7, 
built on 02/25/2020 14:38 GMT
   [INFO ] 2022-01-25 10:43:16.538 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:host.name=openGauss62
   [INFO ] 2022-01-25 10:43:16.538 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:java.version=1.8.0_292
   [INFO ] 2022-01-25 10:43:16.538 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:java.vendor=Bisheng
   [INFO ] 2022-01-25 10:43:16.538 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:java.home=/home/peilq/bisheng-jdk1.8.0_292/jre
   [INFO ] 2022-01-25 10:43:16.538 [main] org.apache.zookeeper.ZooKeeper - 
Client 
environment:java.class.path=/home/peilq/ci/proxy_home/apache-shardingsphere-5.0.1-SNAPSHOT-shardingsphere-proxy-bin/conf:.:/home/peilq/ci/proxy
   [INFO ] 2022-01-25 10:43:16.538 [main] org.apache.zookeeper.ZooKeeper - 
Client 
environment:java.library.path=/usr/java/packages/lib/aarch64:/lib:/usr/lib
   [INFO ] 2022-01-25 10:43:16.538 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:java.io.tmpdir=/tmp
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:java.compiler=<NA>
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:os.name=Linux
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:os.arch=aarch64
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:os.version=4.19.90-2109.1.0.0108.oe1.aarch64
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:user.name=peilq
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:user.home=/home/peilq
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client 
environment:user.dir=/home/peilq/ci/test/pipeline_script/apache-shardingsphere-5.0.1-SNAPSHOT-shardingsphere-proxy-bin
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:os.memory.free=6594MB
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:os.memory.max=7577MB
   [INFO ] 2022-01-25 10:43:16.539 [main] org.apache.zookeeper.ZooKeeper - 
Client environment:os.memory.total=7577MB
   [INFO ] 2022-01-25 10:43:16.542 [main] org.apache.zookeeper.ZooKeeper - 
Initiating client connection, connectString=20.20.20.88:2181 
sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@156b88f5
   [INFO ] 2022-01-25 10:43:16.548 [main] org.apache.zookeeper.common.X509Util 
- Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable 
client-initiated TLS renegotiation
   [INFO ] 2022-01-25 10:43:16.554 [main] o.apache.zookeeper.ClientCnxnSocket - 
jute.maxbuffer value is 1048575 Bytes
   [INFO ] 2022-01-25 10:43:16.561 [main] org.apache.zookeeper.ClientCnxn - 
zookeeper.request.timeout value is 0. feature enabled=false
   [INFO ] 2022-01-25 10:43:16.589 [main] o.a.c.f.imps.CuratorFrameworkImpl - 
Default schema
   [INFO ] 2022-01-25 10:43:26.641 [main-SendThread(20.20.20.88:2181)] 
org.apache.zookeeper.ClientCnxn - Opening socket connection to server 
20.20.20.88/20.20.20.88:2181.
   [INFO ] 2022-01-25 10:43:26.641 [main-SendThread(20.20.20.88:2181)] 
org.apache.zookeeper.ClientCnxn - SASL config status: Will not attempt to 
authenticate using SASL (unknown error)
   [INFO ] 2022-01-25 10:43:26.647 [main-SendThread(20.20.20.88:2181)] 
org.apache.zookeeper.ClientCnxn - Socket connection established, initiating 
session, client: /20.20.20.62:38558, server: 20.20.20.88/20.20.20.88:2181
   [INFO ] 2022-01-25 10:43:26.663 [main-SendThread(20.20.20.88:2181)] 
org.apache.zookeeper.ClientCnxn - Session establishment complete on server 
20.20.20.88/20.20.20.88:2181, session id = 0x1007c2c02290025, negotiated 
timeou[INFO ] 2022-01-25 10:43:26.667 [main-EventThread] 
o.a.c.f.state.ConnectionStateManager - State change: CONNECTED
   [INFO ] 2022-01-25 10:43:26.689 [main-EventThread] 
o.a.c.framework.imps.EnsembleTracker - New config event received: {}
   [INFO ] 2022-01-25 10:43:26.689 [main-EventThread] 
o.a.c.framework.imps.EnsembleTracker - New config event received: {}
   [INFO ] 2022-01-25 10:43:26.825 [main] o.a.c.f.imps.CuratorFrameworkImpl - 
Starting
   [INFO ] 2022-01-25 10:43:26.825 [main] org.apache.zookeeper.ZooKeeper - 
Initiating client connection, connectString=20.20.20.88:2181 
sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@a8ef162
   [INFO ] 2022-01-25 10:43:26.825 [main] o.apache.zookeeper.ClientCnxnSocket - 
jute.maxbuffer value is 1048575 Bytes
   [INFO ] 2022-01-25 10:43:26.825 [main] org.apache.zookeeper.ClientCnxn - 
zookeeper.request.timeout value is 0. feature enabled=false
   [INFO ] 2022-01-25 10:43:26.826 [main] o.a.c.f.imps.CuratorFrameworkImpl - 
Default schema
   [INFO ] 2022-01-25 10:43:35.827 [Curator-Framework-0] 
o.a.c.f.imps.CuratorFrameworkImpl - backgroundOperationsLoop exiting
   [INFO ] 2022-01-25 10:43:36.885 [main-SendThread(20.20.20.88:2181)] 
org.apache.zookeeper.ClientCnxn - Opening socket connection to server 
20.20.20.88/20.20.20.88:2181.
   [INFO ] 2022-01-25 10:43:36.885 [main-SendThread(20.20.20.88:2181)] 
org.apache.zookeeper.ClientCnxn - SASL config status: Will not attempt to 
authenticate using SASL (unknown error)
   [INFO ] 2022-01-25 10:43:36.885 [main-SendThread(20.20.20.88:2181)] 
org.apache.zookeeper.ClientCnxn - Socket connection established, initiating 
session, client: /20.20.20.62:38560, server: 20.20.20.88/20.20.20.88:2181
   [INFO ] 2022-01-25 10:43:36.895 [main-SendThread(20.20.20.88:2181)] 
org.apache.zookeeper.ClientCnxn - Session establishment complete on server 
20.20.20.88/20.20.20.88:2181, session id = 0x1007c2c02290026, negotiated timeou
   [INFO ] 2022-01-25 10:43:37.009 [main] org.apache.zookeeper.ZooKeeper - 
Session: 0x1007c2c02290026 closed
   [INFO ] 2022-01-25 10:43:37.009 [main-EventThread] 
org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 
0x1007c2c02290026
   Exception in thread "main" 
org.apache.shardingsphere.elasticjob.reg.exception.RegException: 
org.apache.zookeeper.KeeperException$OperationTimeoutException: KeeperErrorCode 
= OperationTimeout
           at 
org.apache.shardingsphere.elasticjob.reg.exception.RegExceptionHandler.handleException(RegExceptionHandler.java:48)
           at 
org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.init(ZookeeperRegistryCenter.java:107)
           at 
org.apache.shardingsphere.schedule.core.api.ModeScheduleContext.initRegistryCenterForClusterMode(ModeScheduleContext.java:84)
           at 
org.apache.shardingsphere.schedule.core.api.ModeScheduleContext.initRegistryCenter(ModeScheduleContext.java:65)
           at 
org.apache.shardingsphere.schedule.core.api.ModeScheduleContext.<init>(ModeScheduleContext.java:52)
           at 
org.apache.shardingsphere.schedule.core.api.ModeScheduleContextFactory.init(ModeScheduleContextFactory.java:47)
           at 
org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.beforeBuildContextManager(ClusterContextManagerBuilder.java:95)
           at 
org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.build(ClusterContextManagerBuilder.java:85)
           at 
org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.createContextManager(BootstrapInitializer.java:84)
           at 
org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.init(BootstrapInitializer.java:71)
           at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:47)
   Caused by: org.apache.zookeeper.KeeperException$OperationTimeoutException: 
KeeperErrorCode = OperationTimeout
           at 
org.apache.shardingsphere.elasticjob.reg.zookeeper.ZookeeperRegistryCenter.init(ZookeeperRegistryCenter.java:102)
           ... 9 more
   ```
   
   ### Reason analyze (If you can)
   
   The default operation timeout of `ZookeeperConfiguration` is too short for 
the environment.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ```
   mode:
     type: Cluster
     repository:
       type: ZooKeeper
       props:
         namespace: governance_ds
         server-lists: 20.20.20.88:2181
         retryIntervalMilliseconds: 30000
         timeToLiveSeconds: 60
         maxRetries: 3
         operationTimeoutMilliseconds: 30000
     overwrite: false
   ```
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to