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

Full trace returned on ReadFailure by cqlsh

    XMLWordPrintableJSON

Details

    Description

      I noticed that the full traceback is returned on a read failure where I expected this to be a one line exception with the ReadFailure message. It is minor, but would it be better to only return the ReadFailure details?

      cqlsh> SELECT * FROM test_encryption_ks.test_bad_table;
      Traceback (most recent call last):
        File "/usr/local/lib/dse/bin/../resources/cassandra/bin/cqlsh.py", line 1276, in perform_simple_statement
          result = future.result()
        File "/usr/local/lib/dse/resources/cassandra/bin/../lib/cassandra-driver-internal-only-3.0.0-6af642d.zip/cassandra-driver-3.0.0-6af642d/cassandra/cluster.py", line 3122, in result
          raise self._final_exception
      ReadFailure: code=1300 [Replica(s) failed to execute read] message="Operation failed - received 0 responses and 1 failures" info={'failures': 1, 'received_responses': 0, 'required_responses': 1, 'consistency': 'ONE'}
      

      Attachments

        1. CASSANDRA-11032-trunk.patch
          0.8 kB
          Zhongxiang Zheng

        Activity

          People

            zzheng Zhongxiang Zheng
            csplinter Chris Splinter
            Zhongxiang Zheng
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: