Cassandra:Cassandra节点中的跨主机复制中发生“初始化期间关闭池”

时间:2019-11-15 19:00:52

标签: cassandra

我们看到这些警告消息“初始化期间游泳池已关闭”

在Cassandra节点中的每个跨主机复制中都会发生这种情况。我不知道它的影响。我们能知道为什么会发生这种事吗?

WARN 19:07:11 Error creating pool to /xx.xx.xx.xx:9042

com.datastax.driver.core.exceptions.ConnectionException: [/xx.xx.xx.xx] Pool was closed during initialization

at com.datastax.driver.core.HostConnectionPool$2.onSuccess(HostConnectionPool.java:149) [cassandra-driver-core-3.0.1-shaded.jar:na]

at com.datastax.driver.core.HostConnectionPool$2.onSuccess(HostConnectionPool.java:135) [cassandra-driver-core-3.0.1-shaded.jar:na]

at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319) [guava-18.0.jar:na]

at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299) [guava-18.0.jar:na]

at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) [guava-18.0.jar:na]
cluster = Cluster.builder()
                    .withMaxSchemaAgreementWaitSeconds(20) // default value is 10 seconds
                    .withSpeculativeExecutionPolicy(speculativeExecutionPolicy)
                    .withCredentials("username", "pwd")
                    .addContactPointsWithPorts(cassandraContactPoints)
                    .withoutJMXReporting().build();
this.cluster.init();
session = cluster.connect();

0 个答案:

没有答案