Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started



bb.addagada_90355 avatar image
bb.addagada_90355 asked bb.addagada_90355 commented

What could be the cause of TransportException?

Hi ,

We are observing below error from java driver, while executing solr queries on solr dc.

Connection has been closed|| [X.X.X.X:9042] Connection has been closed; nested exception is com.datastax.driver.core.exceptions.TransportException: [X.X.X.X:9042] Connection has been closed
    at org.springframework.cassandra.core.CqlTemplate.potentiallyConvertRuntimeException(
    at org.springframework.cassandra.core.CqlTemplate.translateExceptionIfPossible(
    at org.springframework.cassandra.core.CqlTemplate.translateExceptionIfPoss

Envirnoment:- DSE 5.1.16, Java driver version 1.9 , Spring framework

Wanted to know cases where driver throws such kind of expectations?

Any response is much appericated!


Buchi Babu

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 bb.addagada_90355 commented

@bb.addagada_90355 There's not enough information in your post to determine why the DSE node closed the connection.

You will need to review the logs on the DSE node around the time that the driver logged the error to figure out the cause. For example, if the driver logged CassandraConnectionFailureException at 1pm for node, you need to check the log entries at 1pm for that node to work out why the request failed.

The connection could've been closed for various reasons and you can only work that out by reviewing the logs. Cheers!

1 comment 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.

Thanks for your response @Erick Ramirez , unfortunately we examined the logs but couldn't find anything interesting.


0 Likes 0 ·