com.datastax.driver.core.TransportException: [/] Cannot connect

DataStax JIRA | Benedict Adamson | 1 year ago
  1. 0

    If a data-store node is down when the connection pool code tries to connect to it, naturally an exception is thrown by the networking code. The connection pool code however logs this exception as an ERROR with a stack-trace. This is questionable behaviour: * Stack-traces should be logged for exceptions that indicate program logic errors, and only logic errors, as they are useful to only programmers, and not useful to computer operators. * C* is designed to cope with data-store nodes that go down. A Data-store node being down is not an error condition, but is a warning condition; C* may still (with suitable replication and consistency-level settings) satisfy queries despite the node being down. Here is an example log message: {noformat} ERROR 2015-05-27 15:29:01,585 Error creating pool to / com.datastax.driver.core.TransportException: [/] Cannot connect at com.datastax.driver.core.Connection.<init>( ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.PooledConnection.<init>( ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.Connection$ ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.SingleConnectionPool.<init>( ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.HostConnectionPool.newInstance( ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.SessionManager.replacePool( ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.SessionManager.access$400( ~[cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.SessionManager$ [cassandra-driver-core-2.1.5.jar:na] at com.datastax.driver.core.SessionManager$ [cassandra-driver-core-2.1.5.jar:na] at [na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor.runWorker( [na:1.7.0_75] at java.util.concurrent.ThreadPoolExecutor$ [na:1.7.0_75] at [na:1.7.0_75] Caused by: Connection refused: / at Method) ~[na:1.7.0_75] at ~[na:1.7.0_75] at ~[netty-3.9.0.Final.jar:na] at ~[netty-3.9.0.Final.jar:na] at ~[netty-3.9.0.Final.jar:na] at ~[netty-3.9.0.Final.jar:na] at ~[netty-3.9.0.Final.jar:na] ... 3 common frames omitted {noformat}

    DataStax JIRA | 1 year ago | Benedict Adamson
    com.datastax.driver.core.TransportException: [/] Cannot connect
  2. 0

    Cassandra connection issue during compaction

    Stack Overflow | 1 year ago | lakshmanas
    com.datastax.driver.core.TransportException: [/] Cannot connect
  3. 0

    Cassandra NoHostAvailableException Java-CQLDriver

    Stack Overflow | 2 years ago | learner
    com.datastax.driver.core.TransportException: [/] Cannot connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 62#144899449

    GitHub | 1 year ago | ziploc1010
    com.datastax.driver.core.TransportException: [/] Cannot connect
  6. 0

    Failed to open thrift connection

    GitHub | 1 year ago | ziploc1010
    com.datastax.driver.core.TransportException: [/] Cannot connect

  1. rp 1 times, last 3 days ago
  2. bpbhat77 55 times, last 3 months ago
  3. poroszd 4 times, last 3 weeks ago
  4. Raggyman 104806 times, last 3 weeks ago
  5. pbabcsany 2 times, last 2 months ago
7 more registered users
84 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis


    Connection refused: /

  2. Java RT
    1. Method)[na:1.7.0_75]
    2 frames
  3. Netty
    5 frames
  4. Java RT
    1. java.util.concurrent.ThreadPoolExecutor.runWorker([na:1.7.0_75]
    2. java.util.concurrent.ThreadPoolExecutor$[na:1.7.0_75]
    3 frames