压力测试的时候,项目运行一段时间后提示没有provider(org.apache.dubbo.rpc.RpcException: No provider available from registry 127.0.0.1:2181 for service XXX on consumer XXX use dubbo version 2.7.7, please check status of providers(disabled, not registered or in blacklist).)
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
- [ ] I have checked the FAQ of this repository and believe that this is not a duplicate.
Environment
- Dubbo version: 2.7.7
- Operating System version: ubuntu16.04
- Java version: 1.8
Steps to reproduce this issue
问题描述: 1.启动100个线程执行压力测试, 有11个线程执行一段时间后调用dubbo服务的时候抛出找不到provider的异常, 其他仍然可以继续正常执行 ,在抛出异常的这段时间内重新创建了session会话 2.启动100个线程执行压力测试, 执行一段时间后所有线程调用dubbo服务的时候抛出找不到provider的异常(不是一次抛出), 并且再次访问dubbo服务的时候仍然提示该异常 3.启动100个线程执行压力测试, 有45个线程执行一段时间后调用dubbo服务的时候抛出找不到provider的异常, 其他仍然可以继续正常执行,在抛出异常的这段时间内重新创建了session会话
环境说明: 使用zookeeper3.4.8作为注册中心和配置中心(未配置集群),Seata1.3管理事务, Wildfly10作为服务器。且仅有一台服务器
分析: 使用dubbo管理控制台(dubbo-admin)可以查询到dubbo服务 使用zookeeper的zkCli.sh可以查看到服务的节点信息
Pls. provide [GitHub address] to reproduce this issue.
If there is an exception, please attach the exception trace:
org.apache.dubbo.rpc.RpcException: No provider available from registry 127.0.0.1:2181 for service XXX on consumer XXX use dubbo version 2.7.7, please check status of providers(disabled, not registered or in blacklist).
at org.apache.dubbo.registry.integration.RegistryDirectory.doList(RegistryDirectory.java:599)
at org.apache.dubbo.rpc.cluster.directory.AbstractDirectory.list(AbstractDirectory.java:75)
at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.list(AbstractClusterInvoker.java:291)
at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:256)
at org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor.intercept(ClusterInterceptor.java:47)
at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$InterceptorInvokerNode.invoke(AbstractCluster.java:92)
at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:82)
at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74)
at org.apache.dubbo.common.bytecode.proxy0.getSensorTerminalByMacBytes(proxy0.java)
at com.ibangle88.etagserver.service.impl.SensorTerminalServiceImpl.getSensorTerminal(SensorTerminalServiceImpl.java:45)
at com.ibangle88.etagserver.service.impl.SensorTerminalServiceImpl$$FastClassBySpringCGLIB$$c3648e3f.invoke(
zk日志: 2020-12-28 05:04:00,695 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400dc, timeout of 60000ms exceeded 2020-12-28 05:04:04,687 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400db, timeout of 60000ms exceeded 2020-12-28 05:04:04,688 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400da, timeout of 60000ms exceeded 2020-12-28 05:04:04,719 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400d9, timeout of 60000ms exceeded 2020-12-28 05:04:04,719 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400d8, timeout of 60000ms exceeded 2020-12-28 05:04:04,996 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400dc 2020-12-28 05:04:05,161 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400db 2020-12-28 05:04:05,161 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400da 2020-12-28 05:04:05,162 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400d9 2020-12-28 05:04:05,928 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400d8 2020-12-28 05:04:10,044 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:45608 which had sessionid 0x17675a4da8400dc 2020-12-28 05:04:10,861 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:45610 which had sessionid 0x17675a4da8400db 2020-12-28 05:04:10,952 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:57414 which had sessionid 0x17675a4da8400da 2020-12-28 05:04:11,271 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:45600 which had sessionid 0x17675a4da8400d9 2020-12-28 05:04:11,874 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:57412 which had sessionid 0x17675a4da8400d8 2020-12-28 05:04:20,000 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400e0, timeout of 60000ms exceeded 2020-12-28 05:04:20,001 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400d7, timeout of 60000ms exceeded 2020-12-28 05:04:20,001 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400df, timeout of 60000ms exceeded 2020-12-28 05:04:20,001 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400dd, timeout of 60000ms exceeded 2020-12-28 05:04:20,397 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400e2, timeout of 60000ms exceeded 2020-12-28 05:04:20,397 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400e1, timeout of 60000ms exceeded 2020-12-28 05:04:20,397 [myid:] - INFO [SessionTracker:ZooKeeperServer@355] - Expiring session 0x17675a4da8400de, timeout of 60000ms exceeded 2020-12-28 05:04:20,398 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400e0 2020-12-28 05:04:20,398 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400d7 2020-12-28 05:04:20,707 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400df 2020-12-28 05:04:20,766 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400dd 2020-12-28 05:04:20,767 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400e2 2020-12-28 05:04:20,771 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:45618 which had sessionid 0x17675a4da8400e0 2020-12-28 05:04:20,782 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400e1 2020-12-28 05:04:21,046 [myid:] - INFO [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@489] - Processed session termination for sessionid: 0x17675a4da8400de 2020-12-28 05:04:21,046 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:45606 which had sessionid 0x17675a4da8400d7 2020-12-28 05:04:21,062 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:45602 which had sessionid 0x17675a4da8400df 2020-12-28 05:04:21,084 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:45604 which had sessionid 0x17675a4da8400dd 2020-12-28 05:04:21,084 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:45624 which had sessionid 0x17675a4da8400e2 2020-12-28 05:04:21,202 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:57426 which had sessionid 0x17675a4da8400e1 2020-12-28 05:04:21,262 [myid:] - INFO [SyncThread:0:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:45616 which had sessionid 0x17675a4da8400de 2020-12-28 05:05:49,049 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49181 2020-12-28 05:05:50,469 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49180 2020-12-28 05:05:50,796 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400db at /127.0.0.1:49181 2020-12-28 05:05:51,156 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400db for client /127.0.0.1:49181, probably expired 2020-12-28 05:05:51,376 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49181 which had sessionid 0x17675a4da8400db 2020-12-28 05:05:51,377 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49178 2020-12-28 05:05:51,422 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400da at /127.0.0.1:49180 2020-12-28 05:05:51,422 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400da for client /127.0.0.1:49180, probably expired 2020-12-28 05:05:51,422 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49180 which had sessionid 0x17675a4da8400da 2020-12-28 05:05:51,422 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400e0 at /127.0.0.1:49178 2020-12-28 05:05:51,422 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400e0 for client /127.0.0.1:49178, probably expired 2020-12-28 05:05:51,423 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49179 2020-12-28 05:05:51,423 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49178 which had sessionid 0x17675a4da8400e0 2020-12-28 05:05:51,423 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49183 2020-12-28 05:05:51,423 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400de at /127.0.0.1:49179 2020-12-28 05:05:51,423 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400de for client /127.0.0.1:49179, probably expired 2020-12-28 05:05:51,423 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49179 which had sessionid 0x17675a4da8400de 2020-12-28 05:05:51,423 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400df at /127.0.0.1:49183 2020-12-28 05:05:51,423 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400df for client /127.0.0.1:49183, probably expired 2020-12-28 05:05:51,424 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49182 2020-12-28 05:05:51,424 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49183 which had sessionid 0x17675a4da8400df 2020-12-28 05:05:51,424 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400e2 at /127.0.0.1:49182 2020-12-28 05:05:51,424 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400e2 for client /127.0.0.1:49182, probably expired 2020-12-28 05:05:51,424 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49200 2020-12-28 05:05:51,424 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49182 which had sessionid 0x17675a4da8400e2 2020-12-28 05:05:51,424 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49202 2020-12-28 05:05:51,424 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400dd at /127.0.0.1:49200 2020-12-28 05:05:51,424 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400dd for client /127.0.0.1:49200, probably expired 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400d7 at /127.0.0.1:49202 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400d7 for client /127.0.0.1:49202, probably expired 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49204 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49200 which had sessionid 0x17675a4da8400dd 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400d8 at /127.0.0.1:49204 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400d8 for client /127.0.0.1:49204, probably expired 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49206 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49202 which had sessionid 0x17675a4da8400d7 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49208 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49204 which had sessionid 0x17675a4da8400d8 2020-12-28 05:05:51,425 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400d9 at /127.0.0.1:49206 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400d9 for client /127.0.0.1:49206, probably expired 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49206 which had sessionid 0x17675a4da8400d9 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400e1 at /127.0.0.1:49208 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400e1 for client /127.0.0.1:49208, probably expired 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49210 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49232 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@893] - Client attempting to renew session 0x17675a4da8400dc at /127.0.0.1:49210 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@638] - Invalid session 0x17675a4da8400dc for client /127.0.0.1:49210, probably expired 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49208 which had sessionid 0x17675a4da8400e1 2020-12-28 05:05:51,426 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49232 2020-12-28 05:05:51,594 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1008] - Closed socket connection for client /127.0.0.1:49210 which had sessionid 0x17675a4da8400dc 2020-12-28 05:05:52,517 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49236 2020-12-28 05:05:52,517 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49238 2020-12-28 05:05:52,723 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49238 2020-12-28 05:05:52,724 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49236 2020-12-28 05:05:52,724 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49240 2020-12-28 05:05:53,221 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400e3 with negotiated timeout 60000 for client /127.0.0.1:49232 2020-12-28 05:05:53,521 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400e4 with negotiated timeout 60000 for client /127.0.0.1:49238 2020-12-28 05:05:53,528 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400e5 with negotiated timeout 60000 for client /127.0.0.1:49236 2020-12-28 05:05:53,795 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49240 2020-12-28 05:05:53,944 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400e6 with negotiated timeout 60000 for client /127.0.0.1:49240 2020-12-28 05:05:54,004 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49242 2020-12-28 05:05:54,004 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49243 2020-12-28 05:05:54,235 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49246 2020-12-28 05:05:54,255 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49242 2020-12-28 05:05:54,255 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49243 2020-12-28 05:05:54,256 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49248 2020-12-28 05:05:54,256 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49250 2020-12-28 05:05:54,257 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49252 2020-12-28 05:05:54,345 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400e7 with negotiated timeout 60000 for client /127.0.0.1:49242 2020-12-28 05:05:54,408 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400e8 with negotiated timeout 60000 for client /127.0.0.1:49243 2020-12-28 05:05:54,448 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49254 2020-12-28 05:05:54,472 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49246 2020-12-28 05:05:54,522 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400e9 with negotiated timeout 60000 for client /127.0.0.1:49246 2020-12-28 05:05:54,556 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49248 2020-12-28 05:05:54,556 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /127.0.0.1:49256 2020-12-28 05:05:54,556 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49256 2020-12-28 05:05:54,613 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49254 2020-12-28 05:05:54,614 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400ea with negotiated timeout 60000 for client /127.0.0.1:49248 2020-12-28 05:05:54,614 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49250 2020-12-28 05:05:54,614 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@900] - Client attempting to establish new session at /127.0.0.1:49252 2020-12-28 05:05:54,816 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400eb with negotiated timeout 60000 for client /127.0.0.1:49256 2020-12-28 05:05:55,021 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400ec with negotiated timeout 60000 for client /127.0.0.1:49254 2020-12-28 05:05:55,509 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400ed with negotiated timeout 60000 for client /127.0.0.1:49250 2020-12-28 05:05:55,689 [myid:] - INFO [SyncThread:0:ZooKeeperServer@645] - Established session 0x17675a4da8400ee with negotiated timeout 60000 for client /127.0.0.1:49252
wildfly中的日志:
2020-12-28 05:05:48,223 WARN [org.apache.zookeeper.client.ZooKeeperSaslClient] (ServerService Thread Pool -- 83-SendThread(127.0.0.1:2181)) Could not login: the client is being asked for a password, but the Zookeeper client code does not currently support obtaining a password from the user. Make sure that the client is configured to use a ticket cache (using the JAAS configuration setting 'useTicketCache=true)' and restart the client. If you still get this message after that, the TGT in the ticket cache has expired and must be manually refreshed. To do so, first determine if you are using a password or a keytab. If the former, run kinit in a Unix shell in the environment of the user who is running this Zookeeper client using the command 'kinit
我们在生产环境也遇到了一样的问题,目前也没排查到具体原因,解决了请及时同步下
Environment
Dubbo version: 2.6.2 Operating System version: centos7 Java version: 1.8 zookeeper: 3.4.10
Steps to reproduce this issue
问题描述:
- dubbo服务消费者后端频繁报出如下错误
2020-12-10 00:49:28.998 ERROR [http-nio-8080-exec-7] com.***.***.*** - [***]系统异常
com.alibaba.dubbo.rpc.RpcException: No provider available from registry *.*.*.*:**** for service com.***.***.***. on consumer *.*.*.* use dubbo version 2.6.2, please check status of providers(disabled, not registered or in blacklist).
at com.alibaba.dubbo.registry.integration.RegistryDirectory.doList(RegistryDirectory.java:575)
- zookeeper以3节点集群模式部署,检查了zookeeper的节点快照数据leader节点发现是有服务存在的
其它分析:
我们检查了zk所有节点的数据发现有一个follower节点的快照数据,这个服务的数据的是不存在的,不知道是不是因为这个原因引起的,也找到了zk3.4.10的一个bug。 但日志中报错的registry地址并不是follower地址,而是leader地址。
已经解决了, 是zk会话超时了
已经解决了, 是zk会话超时了
怎么判断是zk会话超时造成的?日志里看不出啊,最后怎么解决的呢?
已经解决了, 是zk会话超时了
怎么判断是zk会话超时造成的?日志里看不出啊,最后怎么解决的呢?
1.zk的日志中有很多的timeout 2.缩短zk zoo.cfg中的minSessionTimeout和maxSessionTimeout 之后重新测试,很快出现了找不到provider的情况 3.增加zk zoo.cfg中的minSessionTimeout和maxSessionTimeout 之后重新测试,跑了很久没有出现该现象