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

Cache collections and streams ignore values added in current transaction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.1.0.Final
    • 11.0.9.Final, 12.0.1.Final
    • Core, Streams
    • None

      This test fails, as the results list is empty:

         public void testValuesIncludesEntriesNotYetCommitted() throws Exception {
            Cache<Object, String> cache = cache(0, CACHE_NAME);
            TransactionManager tm = tm(cache);
            tm.begin();
            try {
               Map<Object, String> values = putValueInEachCache(3);
               List<String> results = new ArrayList<>(cache.values());
               assertEquals(values, results);
            } finally {
               tm.rollback();
            }
         }
      

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: