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

if allow_duplicate_add_to_indices, delta CAS needs to remove all

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0SDK
    • Core Java Framework
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: