question

Ven0524 avatar image
Ven0524 asked Erick Ramirez answered

How can I turn off Spring Boot warnings about failed connection initialisation?

We are connecting to Cassandra from a spring boot application which is running on Kubernetes.

In application logs we could see below warning logs contionously but the connections and saving of data is working without any issue.

WARN 6 --- [ s0-admin-0] c.d.o.d.internal.core.pool.ChannelPool : [s0|/0.0.0.0:9042] Error while opening new channel (ConnectionInitException: [s0|connecting...] Protocol initialization request, step 1 (STARTUP {CQL_VERSION=3.0.0, DRIVER_NAME=DataStax Java driver for Apache Cassandra(R), DRIVER_VERSION=4.6.1, CLIENT_ID= **********************************************}): failed to send request (io.netty.channel.StacklessClosedChannelException))
WARN 6 --- [ s0-admin-1] c.d.o.d.internal.core.pool.ChannelPool : [s0|/0.0.0.0:9042] Error while opening new channel (ConnectionInitException: [s0|connecting...] Protocol initialization request, step 1 (STARTUP {CQL_VERSION=3.0.0, DRIVER_NAME=DataStax Java driver for Apache Cassandra(R), DRIVER_VERSION=4.6.1, CLIENT_ID=**********************************************}): failed to send request (io.netty.channel.StacklessClosedChannelException))
WARN 6 --- [ s0-admin-1] c.d.o.d.internal.core.pool.ChannelPool : [s0|/0.0.0.0:9042] Error while opening new channel (ConnectionInitException: [s0|connecting...] Protocol initialization request, step 1 (STARTUP {CQL_VERSION=3.0.0, DRIVER_NAME=DataStax Java driver for Apache Cassandra(R), DRIVER_VERSION=4.6.1, CLIENT_ID=**********************************************}): failed to send request (io.netty.channel.StacklessClosedChannelException))
WARN 6 --- [ s0-admin-0] c.d.o.d.internal.core.pool.ChannelPool : [s0|/0.0.0.0:9042] Error while opening new channel (ConnectionInitException: [s0|connecting...] Protocol initialization request, step 1 (STARTUP {CQL_VERSION=3.0.0, DRIVER_NAME=DataStax Java driver for Apache Cassandra(R), DRIVER_VERSION=4.6.1, CLIENT_ID=**********************************************}): failed to send request (io.netty.channel.StacklessClosedChannelException))
WARN 6 --- [ s0-admin-1] c.d.o.d.internal.core.pool.ChannelPool : [s0|/0.0.0.0:9042] Error while opening new channel (ConnectionInitException: [s0|connecting...] Protocol initialization request, step 1 (STARTUP {CQL_VERSION=3.0.0, DRIVER_NAME=DataStax Java driver for Apache Cassandra(R), DRIVER_VERSION=4.6.1, CLIENT_ID=**********************************************}): failed to send request (io.netty.channel.StacklessClosedChannelException))

Is there any hidden issue or how can i turn off these warnings if there is any issue?

spring-data-cassandra
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

Those warnings indicate that you haven't configured the contact points correctly so the driver is attempting to connect to 0.0.0.0:9042 instead of a hostname or IP address.

Check your configuration and fix as appropriate and that should stop the warning messages from getting reported. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.