Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12062

Fail fast if a collection is modified during marshalling

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 11.0.0.Final, 10.1.8.Final
    • Marshalling
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: