Stale Hibernate entities are found in some clustered nodes in EAP
Issue
- Clustering has been configured for multiple server JVMs
- Level 2 caching is enabled for persistence units deployed in each server
- When entities are concurrently accessed in multiple server JVMs, stale entities are randomly found in one or more JVMs
- Once stale, entities remain in the level 2 cache until they are explicitly or implicitly (e.g. due to timeout) evicted
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5
- 6
- Hibernate
- Hibernate 3 / JBossCache
- Hibernate 4 / Infinispan
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.