Infinispan doesn't replicate cache entity remove to non-coordinator node

220 Views Asked by At

Environment

  1. Infinispan 9.4.18 embedded
  2. 3 nodes cache in replicated mode
  3. RocksDB store (or other, doesn't matter)

Steps to reproduce

  1. Create TCP-based cluster
  2. Create cache
  3. Add Entity to cache
  4. Check that entity is stored on each node
  5. Stop non-coordinator node
  6. Remove Entity from cache on coordinator
  7. Check that Entity is removed on running nodes
  8. Start previously stopped non-coordinator node
  9. Check that Entity is present on restarted node but is absent on remaining nodes. But expected behavior is to replicate removing to restarted node too.

Questions 1. Is this behavior OK? 2. Can I change it to indicated as expected? 3. And how if so?

1

There are 1 best solutions below

3
Dan Berindei On

Infinispan does not replicate removals to a restarted node. The workaround is to remove all the entries in the restarted node's stores before starting, by configuring the store with purge="true".