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

Cache get from TransactionCompleted throws IllegalStateException

XMLWordPrintable

    • Workaround Exists
    • Hide

      Several workarounds:

      1. Set the listener to be sync=false
      2. Within the listener impl, get the transaction manager and suspend the on-going transaction.

      Show
      Several workarounds: 1. Set the listener to be sync=false 2. Within the listener impl, get the transaction manager and suspend the on-going transaction.

      When implementing @TransactionCompleted in a sync listener, calling cache.get() even when event.isPre=false throws:

      IllegalStateException - ActionStatus.COMMITTED  is not in a valid state to be invoking cache operations on

            pruivo@redhat.com Pedro Ruivo
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: