[hibernate-dev] Cache region names are not prefixed in 5.3

Gail Badner gbadner at redhat.com
Thu May 17 01:34:16 EDT 2018


I see that cache region names are not being prefixed in 5.3.

EnabledCaching sets the TimestampsRegion region name
to TimestampsRegion.class.getName(), and sets the QueryResultsRegion region
name to QueryResultsRegion.class.getName(). [1]

Without a prefix, WildFly is failing intermittently when there are 2
persistence units with the query cache enabled due to:

org.infinispan.commons.CacheConfigurationException: ISPN000453: Attempt to
define configuration for cache org.hibernate.cache.spi.TimestampsRegion
which already exists

Entity region names are not being prefixed either.

Should they be prefixed by Hibernate or by the RegionFactory?

Regards,
Gail

[1]
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/cache/internal/EnabledCaching.java#L80-L92


More information about the hibernate-dev mailing list