You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Abhay (Jira)" <ji...@apache.org> on 2021/12/31 10:43:00 UTC
[jira] [Commented] (IGNITE-13230) Ignite duplicate key and NullPointerException
[ https://issues.apache.org/jira/browse/IGNITE-13230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467222#comment-17467222 ]
Abhay commented on IGNITE-13230:
--------------------------------
If it is a misuse then on create index it should give error and not create a index instead of software crashing down
> 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.9.1
> Reporter: Abhay
> Priority: Minor
> Attachments: logFile.txt, patch3.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.20.1#820001)