Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13230

Ignite duplicate key and NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.9.1
    • None
    • clients
    • None

    Description

      logFile.txt

      Following steps lead to crash 

      1. Start ignite node with persistence enabled , and use ODBC client like isql or pyignite
      2. Fire create table command e.g
        1. 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";
      3. Create index without giving index name and create two such index
        1. CREATE INDEX ON ct_countries(code);
        2. 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)

      Attachments

        1. logFile.txt
          35 kB
          Abhay
        2. patch3.txt
          0.8 kB
          Abhay

        Activity

          People

            Unassigned Unassigned
            abhayavis Abhay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: