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 DA5A494E3 for ; Fri, 10 Feb 2012 21:45:25 +0000 (UTC) Received: (qmail 52460 invoked by uid 500); 10 Feb 2012 21:45:25 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 52420 invoked by uid 500); 10 Feb 2012 21:45: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 52412 invoked by uid 99); 10 Feb 2012 21:45:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 21:45:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 21:45:22 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E49451AF724 for ; Fri, 10 Feb 2012 21:45:01 +0000 (UTC) Date: Fri, 10 Feb 2012 21:45:01 +0000 (UTC) From: "paul cannon (Created) (JIRA)" To: commits@cassandra.apache.org Message-ID: <552814181.26099.1328910301937.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CASSANDRA-3889) malformed UPDATE queries causing NumberFormatException, AssertionError MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org malformed UPDATE queries causing NumberFormatException, AssertionError ---------------------------------------------------------------------- Key: CASSANDRA-3889 URL: https://issues.apache.org/jira/browse/CASSANDRA-3889 Project: Cassandra Issue Type: Bug Components: Core Affects Versions: 1.1.0 Environment: Cassandra 1.1 Reporter: paul cannon Priority: Minor Given a columnfamily like: {code} CREATE TABLE CounterCF (KEY text PRIMARY KEY, count_me counter) WITH comparator = ascii AND default_validation = counter; {code} This query causes Cassandra to throw a NumberFormatException and close the thrift connection (yes, it's not valid, cause it's a counter CF) {code} UPDATE CounterCF SET count_me = count_me + 2, x = 'a' WHERE key = 'counter1'; {code} And this variant causes an AssertionError and a permanently unresponsive thrift connection: {code} update CounterCF set count_me=count_me+2, x='' where key = 'counter1'; {code} When a valid hex string (with a multiple of 2 hex digits) is used instead of 'a' or '', then the expected InvalidRequestException is seen. This is related to CASSANDRA-2851, but seems unimportant and incidental enough that a new ticket is more appropriate than reopening that one. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira