Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13383

Confusing error: unconfigured table table2

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Legacy/Observability
    • Labels:
      None

      Description

      Consider the query:

      Select * from an_absent_table;

      It gives an error:

      com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table an_absent_table
      at com.datastax.driver.core.Responses$Error.asException(Responses.java:136)
      at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:179)
      at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:177)
      at com.datastax.driver.core.RequestHandler.access$2500(RequestHandler.java:46)
      at com.datastax.driver.core.RequestHandler$SpeculativeExecution.setFinalResult(RequestHandler.java:799)
      at com.datastax.driver.core.RequestHandler$SpeculativeExecution.onSet(RequestHandler.java:633)
      at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:1070)
      at com.datastax.driver.core.Connection$Dispatcher.channelRead0(Connection.java:993)
      at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)

      This error should be more descriptive.
      At the very least it should mention the keyspace where Cassandra was trying to find the table.
      It would help debug client code a lot faster if the keyspace was mentioned in the above message.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sachingoyal Sachin Goyal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: