You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Tyler Hobbs (JIRA)" <ji...@apache.org> on 2016/05/27 18:14:12 UTC

[jira] [Commented] (CASSANDRA-11032) Full trace returned on ReadFailure by cqlsh

    [ https://issues.apache.org/jira/browse/CASSANDRA-11032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15304484#comment-15304484 ] 

Tyler Hobbs commented on CASSANDRA-11032:
-----------------------------------------

Thanks for the patch.  I gave this a quick manual test using {{-Dcassandra.test.fail_writes_ks}} and it looks good.

Here are the patches and pending CI tests:
||branch||dtest||
|[CASSANDRA-11032-3.0|https://github.com/thobbs/cassandra/tree/CASSANDRA-11032-3.0]|[dtest|http://cassci.datastax.com/view/Dev/view/thobbs/job/thobbs-CASSANDRA-11032-3.0-dtest]|
|[CASSANDRA-11032-3.7|https://github.com/thobbs/cassandra/tree/CASSANDRA-11032-3.7]|[dtest|http://cassci.datastax.com/view/Dev/view/thobbs/job/thobbs-CASSANDRA-11032-3.7-dtest]|
|[CASSANDRA-11032-trunk|https://github.com/thobbs/cassandra/tree/CASSANDRA-11032-trunk]|[dtest|http://cassci.datastax.com/view/Dev/view/thobbs/job/thobbs-CASSANDRA-11032-trunk-dtest]|

If the tests look good, I'll commit this.

> Full trace returned on ReadFailure by cqlsh
> -------------------------------------------
>
>                 Key: CASSANDRA-11032
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11032
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Chris Splinter
>            Assignee: Zhongxiang Zheng
>            Priority: Minor
>              Labels: cqlsh, lhf
>         Attachments: CASSANDRA-11032-trunk.patch
>
>
> 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?
> {code}
> 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'}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)