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

Distributed executor does not fail over unless future.get() is called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • 10.0.0.Final
    • 8.2.6.Final, 9.0.0.CR1
    • Core
    • None

    Description

      After ISPN-6392, DistributedExecutorService.submit(...) nominally returns a CompletableFuture. However, it doesn't behave like a regular CompletableFuture, because it doesn't run the failure policy until the user calls future.get().

      future.isComplete() will return true before running the failure policy, and future.whenComplete(callback) will also execute the callback before running the failure policy.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: