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

Key set not empty after transactional CACHE_MODE_LOCAL flagged clear

    Details

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  william.burns Will Burns
                  Reporter:
                  galder.zamarreno Galder ZamarreƱo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: