[jboss-jira] [JBoss JIRA] (WFLY-10404) Review/revise 2lc caching design

Scott Marlow (JIRA) issues at jboss.org
Mon Aug 6 14:40:00 EDT 2018


    [ https://issues.jboss.org/browse/WFLY-10404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13615369#comment-13615369 ] 

Scott Marlow commented on WFLY-10404:
-------------------------------------

[~pferraro] Do we need to code anything in WildFly for long persistence unit names?  It looks like [https://issues.jboss.org/browse/ISPN-9206] is still open.

> 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
>             Fix For: 14.0.0.CR1
>
>
> 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/046517fc0829bb0a1768169e549e8e5f6b2b8ea2]) 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.
>  



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list