Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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.