[
https://issues.apache.org/jira/browse/CASSANDRA-7590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072187#comment-14072187
]
Robert Stupp commented on CASSANDRA-7590:
-----------------------------------------
* replaced "column family" with "table" - I had left the term because it was
there - now I know that it's ok to switch to the CQL terms
* removed the ConfigurationException (is superfluous)
* re-added {{columnFamiliy()}}
Checked using
{noformat}
DROP INDEX IF EXISTS fool_test.not_exists;
DROP INDEX fool_test.not_exists;
code=2200 [Invalid query] message="Keyspace 'fooltest' does not exist."
CREATE KEYSPACE test WITH REPLICATION = {'class':'SimpleStrategy',
'replication_factor':1} ;
DROP INDEX test.fake_index;
code=2200 [Invalid query] message="Index 'fake_index' could not be found in any
of the tables of keyspace 'test'"
DROP INDEX IF EXISTS test.fake_index;
CREATE TABLE test.foo (
id int PRIMARY KEY,
val text );
CREATE INDEX bar ON test.foo(val);
DROP INDEX test.bar;
CREATE INDEX bar ON test.foo(val);
USE test;
DROP INDEX bar;
{noformat}
> 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,
> 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)