[JBoss JIRA] (ISPN-10924) JPA cache store (with async enabled) will log Exceptions in DEBUG for deleteBatch and is not able to remove entries from the store
by Ryan Emerson (Jira)
[ https://issues.jboss.org/browse/ISPN-10924?page=com.atlassian.jira.plugin... ]
Ryan Emerson updated ISPN-10924:
--------------------------------
Sprint: DataGrid Sprint #36 (was: DataGrid Sprint #36, DataGrid Sprint #37)
> JPA cache store (with async enabled) will log Exceptions in DEBUG for deleteBatch and is not able to remove entries from the store
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: ISPN-10924
> URL: https://issues.jboss.org/browse/ISPN-10924
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 9.4.16.Final, 10.0.1.Final, 10.1.0.Beta1
> Environment: Embedded mode with configured ASYNC JPA CacheStore
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 9.4.17.Final, 10.1.0.Beta1, 10.0.2.Final
>
>
> If the cache is configured with a persistence of JPAStore in async mode each modification will log a DEBUG message like followed
> Oct 22, 2019 1:51:08 PM org.infinispan.persistence.async.AsyncCacheWriter$AsyncStoreProcessor retryWork
> DEBUG: Failed to process async modifications
> org.infinispan.persistence.jpa.JpaStoreException: Exception caught in deleteBatch()
> at org.infinispan.persistence.jpa.JpaStore.deleteBatch(JpaStore.java:357)
> at org.infinispan.persistence.async.AsyncCacheWriter.applyModificationsSync(AsyncCacheWriter.java:234)
> at org.infinispan.persistence.async.AsyncCacheWriter$AsyncStoreProcessor.retryWork(AsyncCacheWriter.java:463)
> at org.infinispan.persistence.async.AsyncCacheWriter$AsyncStoreProcessor.run(AsyncCacheWriter.java:423)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.IllegalArgumentException: Parameter value [org.infinispan.persistence.async.AsyncCacheWriter$$Lambda$136/1340865907@4c7c351c] did not match expected type [java.lang.String (n/a)]
> at org.hibernate.query.spi.QueryParameterBindingValidator.validate(QueryParameterBindingValidator.java:54)
> at org.hibernate.query.spi.QueryParameterBindingValidator.validate(QueryParameterBindingValidator.java:27)
> at org.hibernate.query.internal.QueryParameterBindingImpl.validate(QueryParameterBindingImpl.java:90)
> at org.hibernate.query.internal.QueryParameterBindingImpl.setBindValue(QueryParameterBindingImpl.java:55)
> at org.hibernate.query.internal.AbstractProducedQuery.setParameter(AbstractProducedQuery.java:493)
> at org.hibernate.query.internal.AbstractProducedQuery.setParameter(AbstractProducedQuery.java:106)
> at org.hibernate.query.criteria.internal.compile.CriteriaCompiler$1$1.bind(CriteriaCompiler.java:119)
> at org.hibernate.query.criteria.internal.AbstractManipulationCriteriaQuery$1.buildCompiledQuery(AbstractManipulationCriteriaQuery.java:135)
> at org.hibernate.query.criteria.internal.compile.CriteriaCompiler.compile(CriteriaCompiler.java:149)
> at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:3724)
> at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:207)
> at org.infinispan.persistence.jpa.JpaStore.deleteBatch(JpaStore.java:341)
> ... 6 more
> If entries should be removed this is only done in memory but the store will fail ASYNC.
> Because of the async contract there is only a warning wihtout any exact hint:
> WARN: ISPN000053: Unable to process some async modifications after 10 retries!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (ISPN-10940) JPA deleteBatch should not pass empty collection to CriteriaDelete
by Ryan Emerson (Jira)
[ https://issues.jboss.org/browse/ISPN-10940?page=com.atlassian.jira.plugin... ]
Ryan Emerson updated ISPN-10940:
--------------------------------
Sprint: DataGrid Sprint #36 (was: DataGrid Sprint #36, DataGrid Sprint #37)
> JPA deleteBatch should not pass empty collection to CriteriaDelete
> ------------------------------------------------------------------
>
> Key: ISPN-10940
> URL: https://issues.jboss.org/browse/ISPN-10940
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 9.4.16.Final, 10.0.1.Final, 10.1.0.Beta1
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 9.4.17.Final, 10.1.0.Beta1, 10.0.2.Final
>
>
> Passing an empty collection to CriteriaDelete is only supported by some DB implementations, therefore {{JpaStore::deleteBatch}} should return before a {{CriteriaDelete}} instance is created when an empty iterable has been supplied.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (ISPN-10958) JBossExternalizerAdapter must be whitelisted when jboss-marshalling is used
by Ryan Emerson (Jira)
[ https://issues.jboss.org/browse/ISPN-10958?page=com.atlassian.jira.plugin... ]
Ryan Emerson updated ISPN-10958:
--------------------------------
Sprint: DataGrid Sprint #36 (was: DataGrid Sprint #36, DataGrid Sprint #37)
> JBossExternalizerAdapter must be whitelisted when jboss-marshalling is used
> ---------------------------------------------------------------------------
>
> Key: ISPN-10958
> URL: https://issues.jboss.org/browse/ISPN-10958
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 10.1.0.Beta1
>
>
> ISPN-10868 removed {{org.infinispan.jboss.marshalling.commons.JBossExternalizerAdapter}} from the default {{ClassWhiteList}} however this is required if the {{@SerializeWith}} annotations are used with jboss-marshalling.
> We should ensure that {{org.infinispan.jboss.marshalling.commons.JBossExternalizerAdapter}} is whitelisted. However, instead of adding to the default whitelist, it should be possible to simply add the class to the white list only when {{CheckedClassResolver}} is used.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (ISPN-9394) Getting java.lang.ClassCastException after calling XSiteAdmin.status()
by Pedro Ruivo (Jira)
[ https://issues.jboss.org/browse/ISPN-9394?page=com.atlassian.jira.plugin.... ]
Pedro Ruivo closed ISPN-9394.
-----------------------------
> Getting java.lang.ClassCastException after calling XSiteAdmin.status()
> ----------------------------------------------------------------------
>
> Key: ISPN-9394
> URL: https://issues.jboss.org/browse/ISPN-9394
> Project: Infinispan
> Issue Type: Bug
> Components: Cross-Site Replication
> Reporter: Jared Blashka
> Assignee: Pedro Ruivo
> Priority: Minor
> Fix For: 10.1.0.Beta1
>
> Attachments: clustered.xml
>
>
> I've got a cross-site cluster set up with 4 hosts (a,b) <-> (c,d). If I stop a particular cache on 'a' and then call XSiteAdmin.status() for that cache on 'b' I get "java.lang.ClassCastException: org.infinispan.remoting.responses.CacheNotFoundResponse cannot be cast to org.infinispan.remoting.responses.SuccessfulResponse".
> XSiteAdmin.status() still works without any issues on 'c' and 'd' however
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months