Stale Hibernate entities are found in some clustered nodes in EAP

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.