Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3746E1052D for ; Mon, 7 Apr 2014 11:06:29 +0000 (UTC) Received: (qmail 62935 invoked by uid 500); 7 Apr 2014 11:06:27 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 62882 invoked by uid 500); 7 Apr 2014 11:06:25 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 62774 invoked by uid 99); 7 Apr 2014 11:06:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 11:06:17 +0000 Date: Mon, 7 Apr 2014 11:06:17 +0000 (UTC) From: "Pavel Eremeev (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6988) Add error code to thrift InvalidRequestException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-6988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pavel Eremeev updated CASSANDRA-6988: ------------------------------------- Description: 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. was: 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. > 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)