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

SIFS rebuild index cannot compact file

XMLWordPrintable

    • Hide

      1. Insert writes to a data file that hasn't been completed with many updates to the same key to create a lot of free space.
      2. Shutdown the server.
      3. Delete the index directory
      4. Restart the server

      Show
      1. Insert writes to a data file that hasn't been completed with many updates to the same key to create a lot of free space. 2. Shutdown the server. 3. Delete the index directory 4. Restart the server

      When starting SIFS (Soft Index File Store) with a corrupt index it must rebuild it. When it does it will run the compactor a file that should have been compacted, unfortunately the Compactor has not started at this point and gets a NPE. This in turn puts the Segment in an invalid state.

      This then prevents the server from shutting down cleanly meaning it gets stuck in this state.

      The big problem is this error encountered is never even logged. We should log the error (so that if a future issue happens we can more easily debug) and prevent this specific case from happening.

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: