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

Possible inconsistency with concurrent transactions during state transfer

    XMLWordPrintable

Details

    Description

      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().

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: