We're updating the issue view to help you get more done. 

Inserts trigger superfluous invalidate messages

Description

During debugging op HHH-12036, 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

Environment

WildFly 11.0.0.CR1

Status

Assignee

Radim Vansa

Reporter

Emond Papegaaij

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.1.10

Priority

Minor