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

BaseDistributionInterceptor.remoteGet may cause concurrency issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.4.6.Final, 10.0.0.Final
    • 9.1.0.Final
    • Core
    • None

      BaseDistributionInterceptor.remoteGet or any call that accesses the context in an async future handler that is called multiple times in parallel may lead to concurrent modifications of the context.

      These calls are usually handled using CompletableFuture.allOf() or using a CF with counter, but if one of the calls results in exceptional completion of the composed future, the processing continues (e.g. with a retry). The other parallel operation handlers are not stopped, though.

      BaseDistributionInterceptor.remoteGet shouldn't be called in parallel because it does not even synchronize regular successful invocations.

      A problem like this caused failures in GetAllCommandStressTest, and the issue was addressed for GetAllCommand in ISPN-7884.

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

              Created:
              Updated:
              Resolved: