Details
-
Bug
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
2.9.1
-
None
-
None
Description
Following steps lead to crash
- Start ignite node with persistence enabled , and use ODBC client like isql or pyignite
- Fire create table command e.g
- CREATE TABLE ct_countries(id bigint PRIMARY KEY NOT NULL,code VARCHAR(50) DEFAULT '',name VARCHAR(100) DEFAULT '',timezonecheck VARCHAR DEFAULT 'N',dstcheck VARCHAR DEFAULT 'N',phonecodelength VARCHAR(20) DEFAULT '',status varchar(10) DEFAULT 'INACTIVE')WITH "template=partitioned,backups=0,affinity_key=id";
- Create index without giving index name and create two such index
- CREATE INDEX ON ct_countries(code);
- CREATE INDEX ON ct_countries(name);
Restart ignite and it will crash with the follolwing logs
java.lang.IllegalStateException: Duplicate key
at org.apache.ignite.cache.QueryEntity.checkIndexes(QueryEntity.java:233)
at org.apache.ignite.cache.QueryEntity.makePatch(QueryEntity.java:184)
at org.apache.ignite.internal.processors.query.QuerySchema.makePatch(QuerySchema.java:114)
java.lang.IllegalStateException: Duplicate key
at org.apache.ignite.cache.QueryEntity.checkIndexes(QueryEntity.java:233)
at org.apache.ignite.cache.QueryEntity.makePatch(QueryEntity.java:184)
at org.apache.ignite.internal.processors.query.QuerySchema.makePatch(QuerySchema.java:114)