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

SIFS doesn't drop index when compactor finds a non indexed entry

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.0.27.Final
    • Loaders and Stores
    • None

    Description

      While fixing ISPN-15394 we now drop a value that is not in the index. Unfortunately, we only drop the value and the index can still remain. This is not an issue from removing a segment as we delete the entire segment tree lookup. There is some case that can cause an index to point to a value that shouldn't exist still.. This JIRA is not to fix that but to fix a side effect of it.

      The issue is this code at https://github.com/infinispan/infinispan/blob/4b01f9a55f00519997b0bdcada1aa05f300e4b3c/core/src/main/java/org/infinispan/persistence/sifs/Compactor.java#L583 that uses a continue instead of continuing processing for the entry and actually dropping the index.

      Unfortunately, I cannot add a test for this as I do not know the exact case that causes it, but it seems extremely likely that it is from a concurrent clear call.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: