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

Size after a suspended transaction is resumed is incorrectly calculated

    Details

      Description

         public void testSizeAfterClearInBranchedTransaction() throws Exception {
            cache.put(1, "v1");
            tm().begin();
            try {
               assertEquals("v1", cache.get(1));
               Transaction suspended = tm().suspend();
               tm().begin();
               try {
                  cache.clear();
               } finally {
                  tm().commit();
                  tm().resume(suspended);
      
                  assertEquals(1, cache.size()); // assertion fails
                  assertEquals("v1", cache.get(1));
               }
            } finally {
               tm().commit();
            }
         }
      

        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:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: