com.datastax.driver.core.ConnectionException: [host1/ip1:9042] Problem while setting keyspace, got ERROR INVALID: Keyspace 'xxx' does not exist as response

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • We have few clients connecting to nodes of another cluster due to some operational mistakes. We can detect such issues sooner if we log the invalid keyspave below at -ERROR- WARN level. (_*Note: level changed after the issue was open, see discussion below*_) {code} 2014/10/20 10:43:50.968  bld14E37 svn16344 tags[remaining] TRACE [New I/O worker #51] com.datastax.driver.core.Connection - [host1/ip1:9042-41102] received: ERROR INVALID: Keyspace 'xxx' does not exist 2014/10/20 10:43:50.968  bld14E37 svn16344 tags[remaining] TRACE [New I/O worker #42] com.datastax.driver.core.Connection - [host/ip:9042-2] request sent successfully 2014/10/20 10:43:50.968  bld14E37 svn16344 tags[remaining] DEBUG [Cassandra Java Driver worker-14] com.datastax.driver.core.Connection - Defuncting connection to host1/ip1:9042 com.datastax.driver.core.ConnectionException: [host1/ip1:9042] Problem while setting keyspace, got ERROR INVALID: Keyspace 'xxx' does not exist as response         at com.datastax.driver.core.Connection.setKeyspace(Connection.java:287)         at com.datastax.driver.core.Cluster$Manager.prepareAllQueries(Cluster.java:1723)         at com.datastax.driver.core.Cluster$Manager.onUp(Cluster.java:1295)         at com.datastax.driver.core.Cluster$Manager.access$900(Cluster.java:1064)         at com.datastax.driver.core.Cluster$Manager$4.runMayThrow(Cluster.java:1406)         at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32)         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)         at java.util.concurrent.FutureTask.run(FutureTask.java:262)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)         at java.lang.Thread.run(Thread.java:744) {code}
    via by Vishy Kasar,
  • We have few clients connecting to nodes of another cluster due to some operational mistakes. We can detect such issues sooner if we log the invalid keyspave below at -ERROR- WARN level. (_*Note: level changed after the issue was open, see discussion below*_) {code} 2014/10/20 10:43:50.968  bld14E37 svn16344 tags[remaining] TRACE [New I/O worker #51] com.datastax.driver.core.Connection - [host1/ip1:9042-41102] received: ERROR INVALID: Keyspace 'xxx' does not exist 2014/10/20 10:43:50.968  bld14E37 svn16344 tags[remaining] TRACE [New I/O worker #42] com.datastax.driver.core.Connection - [host/ip:9042-2] request sent successfully 2014/10/20 10:43:50.968  bld14E37 svn16344 tags[remaining] DEBUG [Cassandra Java Driver worker-14] com.datastax.driver.core.Connection - Defuncting connection to host1/ip1:9042 com.datastax.driver.core.ConnectionException: [host1/ip1:9042] Problem while setting keyspace, got ERROR INVALID: Keyspace 'xxx' does not exist as response         at com.datastax.driver.core.Connection.setKeyspace(Connection.java:287)         at com.datastax.driver.core.Cluster$Manager.prepareAllQueries(Cluster.java:1723)         at com.datastax.driver.core.Cluster$Manager.onUp(Cluster.java:1295)         at com.datastax.driver.core.Cluster$Manager.access$900(Cluster.java:1064)         at com.datastax.driver.core.Cluster$Manager$4.runMayThrow(Cluster.java:1406)         at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32)         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)         at java.util.concurrent.FutureTask.run(FutureTask.java:262)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)         at java.lang.Thread.run(Thread.java:744) {code}
    via by Vishy Kasar,
    • com.datastax.driver.core.ConnectionException: [host1/ip1:9042] Problem while setting keyspace, got ERROR INVALID: Keyspace 'xxx' does not exist as response at com.datastax.driver.core.Connection.setKeyspace(Connection.java:287) at com.datastax.driver.core.Cluster$Manager.prepareAllQueries(Cluster.java:1723) at com.datastax.driver.core.Cluster$Manager.onUp(Cluster.java:1295) at com.datastax.driver.core.Cluster$Manager.access$900(Cluster.java:1064) at com.datastax.driver.core.Cluster$Manager$4.runMayThrow(Cluster.java:1406) at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)
    No Bugmate found.