]
Brian Stansberry updated WFLY-10404:
------------------------------------
Fix Version/s: 17.0.0.Beta1
(was: 16.0.0.Final)
Review/revise 2lc caching design
--------------------------------
Key: WFLY-10404
URL:
https://issues.jboss.org/browse/WFLY-10404
Project: WildFly
Issue Type: Feature Request
Components: Clustering, JPA / Hibernate
Affects Versions: 13.0.0.Beta1
Reporter: Scott Marlow
Assignee: Paul Ferraro
Priority: Major
Fix For: 17.0.0.Beta1
Review cache isolation, cache region factories, override ISPN default behavior to handle
more efficient names, updates to infinispan-hibernate-cache-spi, app configuration choices
for choosing different strategies.
* Avoid the ByteString byte length limitation of 255
([
https://github.com/infinispan/infinispan/commit/046517fc0829bb0a1768169e5...])
in region name prefix + region name as cache key. Also see
[
https://issues.jboss.org/browse/ISPN-9206].
* Enhance the org.jboss.as.jpa.hibernate5.service.WildFlyCustomRegionFactoryInitiator to
improve caching for:
** container managed persistence units
** non-container-managed persistence unit (e.g. native Hibernate or app calls into
javax.persistence.Persistence.createEntityManagerFactory())
** WildFlyCustomRegionFactoryInitiator cannot start an Infinispan cache by default,
should we offer an API/SPI that Spring could implement for specifying the cache (service)
to be used for a particular persistence unit? The application could specify the custom
API/SPI implementation class via a persistence unit property.
*** Currently, Hibernate defaults the 2lc on but that fails when the Infinispan cache is
not automatically started, so WildFlyCustomRegionFactoryInitiator defaults caching off.
*** If this is not possible, then keep the current WildFlyCustomRegionFactoryInitiator
logic to default Hibernate caching off, unless the app requests caching via configuration
settings.