Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-4315

IllegalArgumentException when doing Rolling Upgrades on transactional caches

    XMLWordPrintable

Details

    • DataGrid Sprint #57

    Description

      Caused by: java.lang.IllegalArgumentException: Cannot create a transactional context without a valid Transaction instance.
          at org.infinispan.context.impl.TransactionalInvocationContextFactory.createInvocationContext(TransactionalInvocationContextFactory.java:63)
      [...]
          at org.infinispan.cache.impl.DecoratedCache.putIfAbsent(DecoratedCache.java:688)
          at org.infinispan.cache.impl.AbstractDelegatingAdvancedCache.putIfAbsent(AbstractDelegatingAdvancedCache.java:328)
          at org.infinispan.cache.impl.EncoderCache.putIfAbsent(EncoderCache.java:450)
          at org.infinispan.persistence.remote.upgrade.MigrationTask.lambda$migrateEntriesWithMetadata$0(MigrationTask.java:128)
          at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1771)
      

      The migration component that obtains data from the remote cache does not use transactions to write to the destination cache, and since it runs on a separate thread, it cannot see any ongoing transaction and thus fail to write to the cache.

      Attachments

        Issue Links

          Activity

            People

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              rhn-support-wfink Wolf Fink
              Gustavo Lira Silva Gustavo Lira Silva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: