You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Cathy Daw (JIRA)" <ji...@apache.org> on 2011/04/22 02:29:05 UTC

[jira] [Created] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
---------------------------------------------------------------------------------------------------

                 Key: CASSANDRA-2539
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 0.8.0
            Reporter: Cathy Daw
            Priority: Trivial


This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.

*cqlsh output*
{noformat}
cqlsh> truncate users;
Exception: UnavailableException()
{noformat}

*log file error*
{noformat}
 INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
{noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023424#comment-13023424 ] 

Eric Evans commented on CASSANDRA-2539:
---------------------------------------

+1

> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Assignee: Eric Evans
>            Priority: Trivial
>              Labels: cql
>         Attachments: 2539-v3.txt, v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt
>
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Evans updated CASSANDRA-2539:
----------------------------------

    Attachment:     (was: v1-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt)

> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Priority: Trivial
>              Labels: cql
>         Attachments: v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt
>
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2539:
--------------------------------------

    Attachment: 2539-v3.txt

v3 also adds a wrapper for TimedOutException

> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Assignee: Eric Evans
>            Priority: Trivial
>              Labels: cql
>         Attachments: 2539-v3.txt, v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt
>
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Cathy Daw (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025470#comment-13025470 ] 

Cathy Daw edited comment on CASSANDRA-2539 at 4/26/11 10:10 PM:
----------------------------------------------------------------

Re-tested in current build.  cqlsh now returns the message:

Unable to complete request: one or more nodes were unavailable.


      was (Author: cdaw):
    Patch tested.  cqlsh now returns the message:

Unable to complete request: one or more nodes were unavailable.

  
> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Assignee: Eric Evans
>            Priority: Trivial
>              Labels: cql
>             Fix For: 0.8.0
>
>         Attachments: 2539-v3.txt, v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt
>
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Evans updated CASSANDRA-2539:
----------------------------------

    Assignee: Eric Evans

> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Assignee: Eric Evans
>            Priority: Trivial
>              Labels: cql
>         Attachments: v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt
>
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Evans updated CASSANDRA-2539:
----------------------------------

    Attachment: v1-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt

> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Priority: Trivial
>              Labels: cql
>         Attachments: v1-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt, v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt
>
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023150#comment-13023150 ] 

Sylvain Lebresne commented on CASSANDRA-2539:
---------------------------------------------

UnavailableException does mean, by definition, "some hosts are down" (which means that we don't really have anything to bubble anything, we can just have cqlsh write it in plain english if we'd like).

But this made me think, maybe we could attach a String to the UnavailableException saying which nodes are down. Not sure what are the consequence in term of thrift compatibility though and if it has any, it's probably not worth the trouble.

> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Priority: Trivial
>              Labels: cql
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Evans updated CASSANDRA-2539:
----------------------------------

    Attachment: v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt

> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Priority: Trivial
>              Labels: cql
>         Attachments: v1-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt, v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt
>
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023480#comment-13023480 ] 

Hudson commented on CASSANDRA-2539:
-----------------------------------

Integrated in Cassandra-0.8 #36 (See [https://builds.apache.org/hudson/job/Cassandra-0.8/36/])
    more user-friendly messages for UE/TOE in cqlsh
patch by eevans and jbellis for CASSANDRA-2539


> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Assignee: Eric Evans
>            Priority: Trivial
>              Labels: cql
>             Fix For: 0.8.0
>
>         Attachments: 2539-v3.txt, v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt
>
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-2539) CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down.

Posted by "Cathy Daw (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025470#comment-13025470 ] 

Cathy Daw commented on CASSANDRA-2539:
--------------------------------------

Patch tested.  cqlsh now returns the message:

Unable to complete request: one or more nodes were unavailable.


> CQL: cqlsh does shows Exception, but not error message when running truncate while a node is down. 
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2539
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2539
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Cathy Daw
>            Assignee: Eric Evans
>            Priority: Trivial
>              Labels: cql
>             Fix For: 0.8.0
>
>         Attachments: 2539-v3.txt, v2-0001-CASSANDRA-2539-print-friendlier-message-for-Unavailabl.txt
>
>
> This is really just a usability bug, but it would nice to bubble the error message that is printed in the log file up to the interface.
> *cqlsh output*
> {noformat}
> cqlsh> truncate users;
> Exception: UnavailableException()
> {noformat}
> *log file error*
> {noformat}
>  INFO [pool-2-thread-5] 2011-04-21 23:53:30,466 StorageProxy.java (line 1021) Cannot perform truncate, some hosts are down
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira