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

Size after a suspended transaction is resumed is incorrectly calculated

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

         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();
            }
         }
      

              wburns@redhat.com Will Burns
              rh-ee-galder Galder ZamarreƱo
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: