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

Key set not empty after transactional CACHE_MODE_LOCAL flagged clear

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: