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

Local PutForExternalRead failing to apply locally in invalidated caches

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Done
    • 6.0.0.CR1
    • 6.0.0.Final
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              gzamarre Galder ZamarreƱo
              gzamarre Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: