[JBoss JIRA] (ISPN-10924) JpaStore (with async enabled) logs 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:
--------------------------------
Summary: JpaStore (with async enabled) logs Exceptions in DEBUG for deleteBatch and is not able to remove entries from the store (was: JPA cache store (with async enabled) will log Exceptions in DEBUG for deleteBatch and is not able to remove entries from the store)
> JpaStore (with async enabled) logs 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
>
> 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)
4 years, 11 months
[JBoss JIRA] (ISPN-10651) jars added to the server/lib folder are not adding classes to classpath
by Tristan Tarrant (Jira)
[ https://issues.jboss.org/browse/ISPN-10651?page=com.atlassian.jira.plugin... ]
Tristan Tarrant updated ISPN-10651:
-----------------------------------
Fix Version/s: 10.0.0.Final
(was: 10.0.0.CR3)
> jars added to the server/lib folder are not adding classes to classpath
> -----------------------------------------------------------------------
>
> Key: ISPN-10651
> URL: https://issues.jboss.org/browse/ISPN-10651
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 10.0.0.CR2
> Reporter: Gustavo Lira e Silva
> Assignee: Tristan Tarrant
> Priority: Critical
> Fix For: 10.0.0.Final
>
> Attachments: h2-1.4.199.jar, ispn10651.zip
>
>
> {code:java}
> GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration build = builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("ISPN_STRING_TABLE")
> .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
> .dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
> .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
> .connectionPool()
> .connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
> .username("sa")
> .password("sa")
> .driverClass("org.h2.Driver")
> .build();
> RemoteCache<String, String> cache = new RemoteCacheManager().administration().getOrCreateCache("test", builder.build());
> cache.put("k1", "v1");
> System.out.println(cache.get("k1"));
> {code}
> If you place H2 driver inside ISPN_HOME/server/lib start the server and run the code above, you will receive ClassNotFoundException: org.h2.Driver
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 11 months
[JBoss JIRA] (ISPN-10651) jars added to the server/lib folder are not adding classes to classpath
by Tristan Tarrant (Jira)
[ https://issues.jboss.org/browse/ISPN-10651?page=com.atlassian.jira.plugin... ]
Tristan Tarrant edited comment on ISPN-10651 at 11/7/19 8:21 AM:
-----------------------------------------------------------------
This works since ISPN-10776 was merged.
was (Author: nadirx):
This works since ISPN-10558 was merged.
> jars added to the server/lib folder are not adding classes to classpath
> -----------------------------------------------------------------------
>
> Key: ISPN-10651
> URL: https://issues.jboss.org/browse/ISPN-10651
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 10.0.0.CR2
> Reporter: Gustavo Lira e Silva
> Assignee: Tristan Tarrant
> Priority: Critical
> Fix For: 10.0.0.Final
>
> Attachments: h2-1.4.199.jar, ispn10651.zip
>
>
> {code:java}
> GlobalConfigurationBuilder globalConfigurationBuilder = new GlobalConfigurationBuilder().defaultCacheName("default");
> ConfigurationBuilder builder = new ConfigurationBuilder();
> Configuration build = builder.persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class)
> .table()
> .dropOnExit(true)
> .createOnStart(true)
> .tableNamePrefix("ISPN_STRING_TABLE")
> .idColumnName("ID_COLUMN").idColumnType("VARCHAR(255)")
> .dataColumnName("DATA_COLUMN").dataColumnType("VARBINARY(1000)")
> .timestampColumnName("TIMESTAMP_COLUMN").timestampColumnType("BIGINT")
> .connectionPool()
> .connectionUrl("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
> .username("sa")
> .password("sa")
> .driverClass("org.h2.Driver")
> .build();
> RemoteCache<String, String> cache = new RemoteCacheManager().administration().getOrCreateCache("test", builder.build());
> cache.put("k1", "v1");
> System.out.println(cache.get("k1"));
> {code}
> If you place H2 driver inside ISPN_HOME/server/lib start the server and run the code above, you will receive ClassNotFoundException: org.h2.Driver
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 11 months