[infinispan-issues] [JBoss JIRA] (ISPN-10323) Non-transactional queries don't update the query cache

Paul Ferraro (Jira) issues at jboss.org
Tue Jun 18 12:28:00 EDT 2019


     [ https://issues.jboss.org/browse/ISPN-10323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Ferraro updated ISPN-10323:
--------------------------------
    Description: 
This is affecting the Hibernate second-level cache simple tutorials where queries are executed outside transactions.

The problem is that the new integration for the query results (result of ISPN-9075) does not verify if there's an on-going transaction before registering a transaction completed synchronization where the query cache is updated.

As a result, when a non-transactional query happens, the transaction synchronization callback does not happen and the query cache is not updated.

*Fix exists in 9.4.x/master and just needs backporting to 9.3.x.*

  was:
This is affecting the Hibernate second-level cache simple tutorials where queries are executed outside transactions.

The problem is that the new integration for the query results (result of ISPN-9075) does not verify if there's an on-going transaction before registering a transaction completed synchronization where the query cache is updated.

As a result, when a non-transactional query happens, the transaction synchronization callback does not happen and the query cache is not updated.



> Non-transactional queries don't update the query cache
> ------------------------------------------------------
>
>                 Key: ISPN-10323
>                 URL: https://issues.jboss.org/browse/ISPN-10323
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Hibernate Cache
>    Affects Versions: 9.3.6.Final
>            Reporter: Paul Ferraro
>            Assignee: Galder Zamarreño
>            Priority: Major
>
> This is affecting the Hibernate second-level cache simple tutorials where queries are executed outside transactions.
> The problem is that the new integration for the query results (result of ISPN-9075) does not verify if there's an on-going transaction before registering a transaction completed synchronization where the query cache is updated.
> As a result, when a non-transactional query happens, the transaction synchronization callback does not happen and the query cache is not updated.
> *Fix exists in 9.4.x/master and just needs backporting to 9.3.x.*



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the infinispan-issues mailing list