| During debugging op
HHH-12036 Reopened , I noticed that every insert of an entity on node1 triggers a superfluous InvalidateCommand for that entity to all other nodes in the cluster. As this is a newly inserted entity, I see no reason for this invalidation. The entity cannot exist in the cache on another node. Perhaps the fix is as simple as using Flag.CACHE_MODE_LOCAL at https://github.com/hibernate/hibernate-orm/blob/master/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/access/NonTxInvalidationCacheAccessDelegate.java#L38 |