cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Lerer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-8455) IndexOutOfBoundsException when building SyntaxError message snippet
Date Fri, 12 Dec 2014 14:28:13 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-8455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Lerer updated CASSANDRA-8455:
--------------------------------------
    Attachment: CASSANDRA-8455-trunk.txt
                CASSANDRA-8455-2.1.txt

Both patchs add error logging to QueryProcessor and a unit test to check the correct behaviour.
The patch for 2.1 back port the fix for the problem from trunk. 

> IndexOutOfBoundsException when building SyntaxError message snippet
> -------------------------------------------------------------------
>
>                 Key: CASSANDRA-8455
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8455
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Tyler Hobbs
>            Assignee: Benjamin Lerer
>            Priority: Minor
>             Fix For: 2.1.3
>
>         Attachments: CASSANDRA-8455-2.1.txt, CASSANDRA-8455-trunk.txt
>
>
> It looks like some syntax errors can result in an IndexOutOfBoundsException when the
error message snippet is being built:
> {noformat}
> cqlsh> create table foo (a int primary key, b int;
> <ErrorMessage code=2000 [Syntax error in CQL query] message="Failed parsing statement:
[create table foo (a int primary key, b int;] reason: ArrayIndexOutOfBoundsException -1">
> {noformat}
> There isn't any error or stacktrace in the server logs.  It would be good to fix that
as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message