[infinispan-issues] [JBoss JIRA] (ISPN-12062) Fail fast if a collection is modified during marshalling

Dan Berindei (Jira) issues at jboss.org
Mon Jun 29 05:36:06 EDT 2020


Dan Berindei created ISPN-12062:
-----------------------------------

             Summary: Fail fast if a collection is modified during marshalling
                 Key: ISPN-12062
                 URL: https://issues.redhat.com/browse/ISPN-12062
             Project: Infinispan
          Issue Type: Enhancement
          Components: Marshalling
    Affects Versions: 10.1.8.Final, 11.0.0.Final
            Reporter: Dan Berindei
             Fix For: 12.0.0.Final


If a collection is modified by a different thread during marshalling, the serialization usually fails with a {{ConcurrentModificationException}}. But in rare cases, {{MarshallUti.marshallCollection()}} may succeed to write a size of {{X}} and then {{Y}} elements.

{{MarshallUti.marshallCollection()}} could keep track of how many elements it writes and throw an exception at the end if the number of elements it wrote is different from the size it wrote.




--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list