我能够构建和部署,通过所有测试,但由于成千上万的这些重新连接,整个构建至少需要3倍的时间。Kafka似乎也在为许多不需要它的测试奔波。尝试最小化所有这些重新连接/连接拒绝错误以缩短管道时间。
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
09:34:55.588 [main-SendThread(localhost:42505)] WARN org.apache.zookeeper.ClientCnxn - Session 0x100003aeb300001 for server localhost/127.0.0.1:42505, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
09:34:55.611 [kafka-producer-network-thread | KafkaExampleProducer612100987] WARN o.apache.kafka.clients.NetworkClient - [Producer clientId=KafkaExampleProducer612100987] Connection to node 1001 (f3d235e5-4cc4-4c7e-bf23-4364e94599f5-hlxpq/10.38.12.196:9092) could not be established. Broker may not be available.
09:34:55.611 [kafka-producer-network-thread | KafkaExampleProducer1450205648] WARN o.apache.kafka.clients.NetworkClient - [Producer clientId=KafkaExampleProducer1450205648] Connection to node 1001 (f3d235e5-4cc4-4c7e-bf23-4364e94599f5-hlxpq/10.38.12.196:9092) could not be established. Broker may not be available.
09:34:55.916 [main-SendThread(localhost:42505)] WARN org.apache.zookeeper.ClientCnxn - Session 0x100003aeb300007 for server localhost/127.0.0.1:42505, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
一些其他信息
09:35:43.506 [main] DEBUG c.e.s.api.NotificationServiceTest - Running with Spring Boot v2.0.7.RELEASE, Spring v5.0.11.RELEASE
09:35:43.506 [main] INFO c.e.s.api.NotificationServiceTest - The following profiles are active: test
下面是测试概要(application test.properties)
grpc.port=0
management.metrics.export.statsd.host=localhost
management.metrics.export.statsd.port=8125
management.metrics.export.statsd.enabled=true
spring.mongodb.embedded.version=3.5.5
暂无答案!
目前还没有任何答案,快来回答吧!