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

Size after a suspended transaction is resumed is incorrectly calculated

    XMLWordPrintable

Details

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

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: