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

Key set not empty after transactional CACHE_MODE_LOCAL flagged clear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 6.0.0.Final
    • 5.3.0.Final, 6.0.0.Final
    • Transactions
    • None

      The following test fails (added to AbstractLocalTest):

         public void testKeySetAfterClear() throws Exception {
            cache.put(1, "v1");
            tm().begin();
            try {
               cache.getAdvancedCache().withFlags(Flag.CACHE_MODE_LOCAL).clear();
               assertTrue(cache.keySet().isEmpty());
            } finally {
               tm().commit();
            }
         }
      

      If the flag is removed, it works fine.

            wburns@redhat.com Will Burns
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: