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

Cache collections and streams ignore values added in current transaction

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: