Abhay created IGNITE-13230:
------------------------------

             Summary: Ignite duplicate key and NullPointerException
                 Key: IGNITE-13230
                 URL: https://issues.apache.org/jira/browse/IGNITE-13230
             Project: Ignite
          Issue Type: Bug
          Components: clients
    Affects Versions: 2.8.1
            Reporter: Abhay
         Attachments: logFile.txt

[^logFile.txt]

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)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to