cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul cannon (Created) (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-3889) malformed UPDATE queries causing NumberFormatException, AssertionError
Date Fri, 10 Feb 2012 21:45:01 GMT
malformed UPDATE queries causing NumberFormatException, AssertionError

                 Key: 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:

        CREATE TABLE CounterCF (KEY text PRIMARY KEY, count_me counter)
            WITH comparator = ascii AND default_validation = counter;

This query causes Cassandra to throw a NumberFormatException and close the thrift connection
(yes, it's not valid, cause it's a counter CF)

UPDATE CounterCF SET count_me = count_me + 2, x = 'a' WHERE key = 'counter1';

And this variant causes an AssertionError and a permanently unresponsive thrift connection:

update CounterCF set count_me=count_me+2, x='' where key = 'counter1';

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:!default.jspa
For more information on JIRA, see:


View raw message