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

Size and isEmpty returning wrong values within tx

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 4.2.0.Final, 4.2.1.CR1, 5.0.0.ALPHA2
    • None
    • None

    Description

      size() and isEmpty() returning wrong values when called within tx, for example, the following test fails:

      public void testSizeIsEmptyWithinTx(Method m) throws Exception

      { Cache<String, String> localCache = cacheManager.getCache(m.getName()); tm().begin(); assert localCache.size() == 0; assert localCache.isEmpty(); localCache.put("k-" + m.getName(), "v-" + m.getName()); assert localCache.size() == 0; assert localCache.isEmpty(); tm().commit(); assert localCache.size() == 1; assert !localCache.isEmpty(); }

      This used to work in 4.0, see http://community.jboss.org/docs/DOC-14695

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: