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

Local PutForExternalRead failing to apply locally in invalidated caches

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.0.0.Final
    • 6.0.0.Final
    • None
    • None

      Some tests in Hibernate 2LC are failing as a result of local putFromLoad calls (putForExternalRead) failing to apply on the node that invoked them, in invalidated caches. Here's a reduced failing test case:

      @Test(groups="functional", testName = "api.mvcc.PutForExternalReadInvTest")
      public class PutForExternalReadInvTest extends MultipleCacheManagersTest {
      
         @Override
         protected void createCacheManagers() throws Throwable {
            ConfigurationBuilder builder = new ConfigurationBuilder();
            builder
                  .clustering().cacheMode(CacheMode.INVALIDATION_SYNC)
                  .transaction().transactionMode(TransactionMode.TRANSACTIONAL);
            createClusteredCaches(2, builder);
         }
      
         public void test000() {
            Cache<Integer, String> c0 = cache(0);
            Cache<Integer, String> c1 = cache(1);
            c0.putForExternalRead(1, "v1");
            assertEquals("v1", c0.get(1));
            c1.putForExternalRead(1, "v1");
            assertEquals("v1", c1.get(1));
         }
      
      }

      This seems to be related to changes in ISPN-3289

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: