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

 

question

bb.addagada_90355 avatar image
bb.addagada_90355 asked ·

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||exception_stack_trace=org.springframework.cassandra.support.exception.CassandraConnectionFailureException: [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.support.CassandraExceptionTranslator.translateExceptionIfPossible(CassandraExceptionTranslator.java:159)
    at org.springframework.cassandra.core.CqlTemplate.potentiallyConvertRuntimeException(CqlTemplate.java:946)
    at org.springframework.cassandra.core.CqlTemplate.translateExceptionIfPossible(CqlTemplate.java:930)
    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!

Thanks,

Buchi Babu

cassandrasolr
10 |1000 characters needed characters left characters exceeded

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 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 10.1.2.3, 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 characters needed characters left characters exceeded

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.


Thanks

0 Likes 0 · ·