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

SIFS write/delete/containsKey(...) exception handling does not conform to NonBlockingStore contract

    XMLWordPrintable

Description

    Currently, when the NonBlockingSoftIndexFileStore.write(...) method fails to marshal a given key or value, it throws a PersistenceException, which is not necessarily handled by the caller (e.g. PassivationManagerImpl), which expects a CompletionStage. According to the NonBlockingStore contract, this method should instead return a CompletableFuture that has completed exceptionally.

    This behavior causes regressions in WildFly - which validates that passivation of a non-marshallable cache entry will not receive a post passivation event.

    The delete(...) and containsKey(...) methods have similar exception handling issues.

    Attachments

      Activity

        People

          pferraro@redhat.com Paul Ferraro
          pferraro@redhat.com Paul Ferraro
          Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: