[ERROR] Connection timed out for zookeeper server connection string (ip:2182) and timeout
project: sharding-proxy version: 3.1.0
#2172 Question I got many more warning and error logs as following.
2019-09-12 16:20:05.537 [ HikariPool-56 housekeeper ] - [ WARN ] [ com.zaxxer.hikari.pool.HikariPool : 668 ] - HikariPool-56 - Thread starvation or clock leap detected (housekeeper delta=59s417ms235μs691ns). 2019-09-12 16:19:59.246 [ HikariPool-79 housekeeper ] - [ WARN ] [ com.zaxxer.hikari.pool.HikariPool : 668 ] - HikariPool-79 - Thread starvation or clock leap detected (housekeeper delta=48s692ms241μs156ns). 2019-09-12 16:19:59.247 [ HikariPool-29 housekeeper ] - [ WARN ] [ com.zaxxer.hikari.pool.HikariPool : 668 ] - HikariPool-29 - Thread starvation or clock leap detected (housekeeper delta=59s419ms184μs806ns). 2019-09-12 16:19:59.246 [ HikariPool-2 housekeeper ] - [ WARN ] [ com.zaxxer.hikari.pool.HikariPool : 668 ] - HikariPool-2 - Thread starvation or clock leap detected (housekeeper delta=54s154ms717μs822ns). 2019-09-12 16:20:06.183 [ ShardingSphere-Command-2 ] - [ INFO ] [ ShardingSphere-SQL : 71 ] - Rule Type: master-slave 2019-09-12 16:19:59.247 [ HikariPool-50 housekeeper ] - [ WARN ] [ com.zaxxer.hikari.pool.HikariPool : 668 ] - HikariPool-50 - Thread starvation or clock leap detected (housekeeper delta=1m36s197ms711μs788ns). 2019-09-12 16:19:59.247 [ HikariPool-40 housekeeper ] - [ WARN ] [ com.zaxxer.hikari.pool.HikariPool : 668 ] - HikariPool-40 - Thread starvation or clock leap detected (housekeeper delta=59s417ms250μs54ns). 2019-09-12 16:19:59.246 [ HikariPool-71 housekeeper ] - [ WARN ] [ com.zaxxer.hikari.pool.HikariPool : 668 ] - HikariPool-71 - Thread starvation or clock leap detected (housekeeper delta=54s154ms726μs716ns). 2019-09-12 16:19:59.246 [ HikariPool-15 housekeeper ] - [ WARN ] [ com.zaxxer.hikari.pool.HikariPool : 668 ] - HikariPool-15 - Thread starvation or clock leap detected (housekeeper delta=54s154ms720μs555ns). [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (12457)
Any suggestions ?
2019-09-12 18:13:14.852 [main-EventThread] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6307) 2019-09-12 18:13:21.411 [Curator-Framework-0] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (12865) 2019-09-12 18:13:28.246 [Curator-Framework-0] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (19701) 2019-09-12 18:13:34.954 [Curator-Framework-0] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6699) 2019-09-12 18:13:14.852 [ main-EventThread ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6307) 2019-09-12 18:13:21.411 [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (12865) 2019-09-12 18:13:28.246 [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (19701) 2019-09-12 18:13:34.954 [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6699)
Can you change the title to make sense description for search friendly?
2019-09-12 18:13:14.852 [main-EventThread] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6307) 2019-09-12 18:13:21.411 [Curator-Framework-0] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (12865) 2019-09-12 18:13:28.246 [Curator-Framework-0] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (19701) 2019-09-12 18:13:34.954 [Curator-Framework-0] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6699) 2019-09-12 18:13:14.852 [ main-EventThread ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6307) 2019-09-12 18:13:21.411 [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (12865) 2019-09-12 18:13:28.246 [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (19701) 2019-09-12 18:13:34.954 [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6699)
Can your database be connected correctly, e.g. account、password or port?
@geomonlin yes, db account&password&port is correct, it's connectable. it seems that the zookeeper server got some problem but i cant see any errors in the zookeeper log. "10.10.0.193:2182" is the zk server and zk listened port.
Can zkCli connect your zookeeper server (10.10.0.193:2182) ?
@sunbufu yes, zk server can be connected from zkCli
@Myshiner. What kind of function is provided by zookeeper in your application, config center, leaf generator or orchestration?
it's orchestration.
@Myshiner. Could you provide more information about the error? Such as: log, enviroment information and so on. Only connection time out is very hard to dug.
@wgy8283335 the sharding-proxy and zookeeper running on a same machine with OS version Centos Linux release 7.5, sharding-proxy 3.1.0, zookeeper 3.4.13. and the error log as follow(And now i didn't get this kind error any more.)
2019-09-12 18:13:14.852 [main-EventThread] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6307) 2019-09-12 18:13:21.411 [Curator-Framework-0] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (12865) 2019-09-12 18:13:28.246 [Curator-Framework-0] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (19701) 2019-09-12 18:13:34.954 [Curator-Framework-0] ERROR org.apache.curator.ConnectionState - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6699) 2019-09-12 18:13:14.852 [ main-EventThread ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6307) 2019-09-12 18:13:21.411 [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (12865) 2019-09-12 18:13:28.246 [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (19701) 2019-09-12 18:13:34.954 [ Curator-Framework-0 ] - [ ERROR ] [ org.apache.curator.ConnectionState : 200 ] - Connection timed out for connection string (10.10.0.193:2182) and timeout (500) / elapsed (6699)
Is it something to do with the poolsize of sharding-proxy, the maxPoolSize is set to 50. please see the datasource conf for your reference. neworiental_v3: !!io.shardingsphere.orchestration.yaml.YamlDataSourceConfiguration dataSourceClassName: com.zaxxer.hikari.HikariDataSource properties: url: jdbc:mysql://10.10.0.193:4306/neworiental_v3?serverTimezone=UTC&useSSL=false password: maxPoolSize: 50 maintenanceIntervalMilliseconds: 30000 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 minPoolSize: 1 username: maxLifetimeMilliseconds: 1800000 slave_v3: !!io.shardingsphere.orchestration.yaml.YamlDataSourceConfiguration dataSourceClassName: com.zaxxer.hikari.HikariDataSource properties: url: jdbc:mysql://10.10.0.193:4306/neworiental_v3?serverTimezone=UTC&useSSL=false password: maxPoolSize: 50 maintenanceIntervalMilliseconds: 30000 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 minPoolSize: 1 username: maxLifetimeMilliseconds: 1800000
@Myshiner . As you said, now I didn't get this kind error anymore. Do you think there was a netowrk problem at that time when the error was happening.
Connection timed out for zookeeper server connection string (ip:2182) and timeout means you really cannot connected zookeeper, please check your env.