Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4126

if allow_duplicate_add_to_indices, delta CAS needs to remove all

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0SDK
    • Component/s: Core Java Framework
    • Labels:
      None

      Description

      UIMA-4100 fixes an issue around Delta deserialization - when updating an existing, indexed FS, by removing the FS from the index before updating the feature values, and then adding it back.

      If the JVM property uima.allow_duplicate_add_to_indices is defined, then it's possible the FS may be added to the indices multiple times. To prevent index corruption, in this case, loop the remove-from-index operation until it fails to find the item in the index, so it removes all instances. And when re-adding it back, add it back the same number of times it was removed.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            schor Marshall Schor
            Reporter:
            schor Marshall Schor
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development