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

Possible inconsistency with concurrent transactions during state transfer

XMLWordPrintable

      It looks like there is a data race between the state transfer thread and a concurrent transaction in EntryWrappingInterceptor.commitEntryIfNeeded:

      tx: commitContextEntry()
      ST: stateConsumer.isKeyUpdated(k)? false
      tx: stateConsumer.addUpdatedKey(k)
      ST: commitContextEntry()

      We probably need some synchronization here, maybe using EquivalentConcurrentHashMapV8.computeIfAbsent().

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

                Created:
                Updated:
                Resolved: