cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6988) Add error code to thrift InvalidRequestException
Date Wed, 16 Apr 2014 15:10:15 GMT

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

Sylvain Lebresne commented on CASSANDRA-6988:
---------------------------------------------

In all honestly, CQL-over-thrift has always mainly be a temporary solution for CQL before
we had the native protocol, and now that we have it, I'd really encourage you to use it as
it's definitively much more complete in term of CQL support. There isn't really any plan to
update CQL-over-thrift in the future in particular. 

> Add error code to thrift InvalidRequestException
> ------------------------------------------------
>
>                 Key: CASSANDRA-6988
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6988
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Pavel Eremeev
>
> When issuing execute_prepared_cql3_query through the thrift api with invalid $queryId
I get InvalidRequestException. I get same exception when attempting to execute statement with
invalid arguments. The only way to distinguish between these errors is to parse error string
in $why (which can be changed on server side with version upgrade).
> I think its would be nice to add $errorCode (similar to ones in binary protocol, like
0x2500 for invalid query id) to InvalidRequestException in thrift.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message