cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yeh Sheng Hsiung (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-10598) Unable to use same index name on column families which have different names in different keyspaces
Date Tue, 03 Nov 2015 10:48:28 GMT

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

Yeh Sheng Hsiung updated CASSANDRA-10598:
-----------------------------------------
    Fix Version/s: 2.2.x

> Unable to use same index name on column families which have different names in different
keyspaces
> --------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-10598
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10598
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Yeh Sheng Hsiung
>             Fix For: 2.1.x, 2.2.x
>
>         Attachments: cassandra-2.1-10598.patch, cassandra-2.2-10598.patch
>
>
> Expected:
> The same index name can be used in different keyspaces without conflict
> Actual:
> Unable to use same index name on column families which have different names in different
keyspaces
> Steps to Reproduce:
> {code}
> cqlsh> CREATE KEYSPACE ks1 WITH replication = {'class': 'NetworkTopologyStrategy',
'DC1' : 1};
> cqlsh> CREATE KEYSPACE ks2 WITH replication = {'class': 'NetworkTopologyStrategy',
'DC1' : 1};
> cqlsh> use ks1;
> cqlsh:ks1> CREATE TABLE t1 (c1 int PRIMARY KEY, c2 int);
> cqlsh:ks1> create index c2_idx on t1 (c2);
> cqlsh:ks1> use ks2;
> cqlsh:ks2> CREATE TABLE t2 (c1 int PRIMARY KEY, c2 int);
> cqlsh:ks2> create index c2_idx on t2 (c2);
> ConfigurationException: <ErrorMessage code=2300 [Query invalid because of configuration
issue] message="Duplicate index name c2_idx">
> {code}



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

Mime
View raw message