[ 
https://issues.apache.org/jira/browse/UIMA-4126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marshall Schor resolved UIMA-4126.
----------------------------------
    Resolution: Fixed

> if allow_duplicate_add_to_indices, delta CAS needs to remove all 
> -----------------------------------------------------------------
>
>                 Key: UIMA-4126
>                 URL: https://issues.apache.org/jira/browse/UIMA-4126
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>             Fix For: 2.7.0SDK
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to