cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7590) java.lang.AssertionError when using DROP INDEX IF EXISTS on non-existing index
Date Wed, 23 Jul 2014 23:00:41 GMT

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

Tyler Hobbs commented on CASSANDRA-7590:
----------------------------------------

[~snazy] I think we want to keep the behavior of throwing an IRE when you do {{DROP INDEX
IF EXISTS}} and the keyspace does _not_ exist.

It also looks like we're seriously lacking test coverage on {{IF \[NOT\] EXISTS}} for DDL
statements.  I've opened CASSANDRA-7604 to address that.

> java.lang.AssertionError when using DROP INDEX IF EXISTS on non-existing index
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7590
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7590
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Hanh Dang
>            Assignee: Robert Stupp
>            Priority: Minor
>              Labels: cql
>             Fix For: 2.1.0
>
>         Attachments: 7590-drop-index-npe-assert.txt
>
>
> To reproduce: 
> cqlsh> CREATE KEYSPACE test WITH REPLICATION = {'class':'SimpleStrategy', 'replication_factor':1};
> cqlsh> USE test;
> cqlsh:test> DROP INDEX IF EXISTS fake_index;
> <ErrorMessage code=0000 [Server error] message="java.lang.AssertionError">



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

Mime
View raw message