Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13947

Index is used even if it was removed from proto schema

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 14.0.0.Final
    • Indexing
    • Hide
      1. Create a schema that contains an index
      2. Create entities
      3. Change schema to not contain index and call updateIndexSchema method
      4. Create entities
      5. Execute a query that should return entities from steps 2. and 4. however it contains entities only from step 2.

      Here is a test that is reproducing the issue
      https://github.com/fax4ever/infinispan-play/blob/ffad75668e7e7fb0837efbd2a5c608477a05f37c/index-evolution/src/test/java/fax/play/smoke/MinorsForNoDowntimeUpgradesTest.java#L137-L164

      Show
      Create a schema that contains an index Create entities Change schema to not contain index and call updateIndexSchema method Create entities Execute a query that should return entities from steps 2. and 4. however it contains entities only from step 2. Here is a test that is reproducing the issue https://github.com/fax4ever/infinispan-play/blob/ffad75668e7e7fb0837efbd2a5c608477a05f37c/index-evolution/src/test/java/fax/play/smoke/MinorsForNoDowntimeUpgradesTest.java#L137-L164

      When an index is removed and the updateIndexSchema method is called, it is expected that Infinispan will not use the index.

              fercoli Fabio Massimo Ercoli
              mhajas@redhat.com Michal Hajas
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: