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

JCache EntryProcesor not working for replicated cache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.0.1.Final
    • JCache
    • None
    • Hide

      1) Start test app in terminal #1 (mvn spring-boot:run)
      2) Start test app in terminal #2 (mvn spring-boot:run)
      3) Press enter in terminal #1
      4) Press enter twice in terminal #2
      4) Press enter twice in terminal #1

      Here is output from terminal #1:
      2017-06-15 00:25:09.681 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 0
      2017-06-15 00:25:09.681 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue...

      2017-06-15 00:25:15.316 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 2
      2017-06-15 00:25:15.317 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue...

      2017-06-15 00:25:15.646 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 2
      2017-06-15 00:25:15.646 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue...

      Here is output from terminal #2:

      2017-06-15 00:25:12.523 INFO 17787 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 1
      2017-06-15 00:25:12.524 INFO 17787 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue...

      2017-06-15 00:25:12.849 INFO 17787 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 2
      2017-06-15 00:25:12.849 INFO 17787 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue...

      Show
      1) Start test app in terminal #1 (mvn spring-boot:run) 2) Start test app in terminal #2 (mvn spring-boot:run) 3) Press enter in terminal #1 4) Press enter twice in terminal #2 4) Press enter twice in terminal #1 Here is output from terminal #1: 2017-06-15 00:25:09.681 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 0 2017-06-15 00:25:09.681 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue... 2017-06-15 00:25:15.316 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 2 2017-06-15 00:25:15.317 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue... 2017-06-15 00:25:15.646 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 2 2017-06-15 00:25:15.646 INFO 17718 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue... Here is output from terminal #2: 2017-06-15 00:25:12.523 INFO 17787 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 1 2017-06-15 00:25:12.524 INFO 17787 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue... 2017-06-15 00:25:12.849 INFO 17787 — [pool-3-thread-1] jcache.test.CacheProcessor : Value: 2 2017-06-15 00:25:12.849 INFO 17787 — [pool-3-thread-1] jcache.test.CacheProcessor : Press enter to continue...
    • Workaround Exists
    • Hide

      Override Object.equals in the type used as value.

      Show
      Override Object.equals in the type used as value.

      Cached value updated via EntryProcessor is not updated in replicated cache.

      Please find attached test application to reproduce the problem. Two instances of application increment cached value, but for one instance new value is not put in the cache (see steps to reproduce).

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

              Created:
              Updated:
              Resolved: