[JBoss JIRA] (ISPN-10095) Shared stores should throw exception when cache is local
by Vladimir Dzhuvinov (Jira)
[ https://issues.jboss.org/browse/ISPN-10095?page=com.atlassian.jira.plugin... ]
Vladimir Dzhuvinov commented on ISPN-10095:
-------------------------------------------
Yesterday we encountered this issue in a test with local cache and shared=true, the test ran but an NPE exception was noticed in the logs:
{{2019-03-30T02:25:42,016 WARN expiration-thread--p3-t1 PersistenceManagerImpl - ISPN000026: Caught exception purging data container!
java.lang.NullPointerException: null
at org.infinispan.persistence.manager.PersistenceManagerImpl.lambda$purgeExpired$6(PersistenceManagerImpl.java:454) ~[infinispan-core-9.4.11.Final.jar:9.4.11.Final]
at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_191]
at org.infinispan.persistence.manager.PersistenceManagerImpl.purgeExpired(PersistenceManagerImpl.java:465) [infinispan-core-9.4.11.Final.jar:9.4.11.Final]
at org.infinispan.expiration.impl.ExpirationManagerImpl.processExpiration(ExpirationManagerImpl.java:111) [infinispan-core-9.4.11.Final.jar:9.4.11.Final]
at org.infinispan.expiration.impl.ExpirationManagerImpl$ScheduledTask.run(ExpirationManagerImpl.java:245) [infinispan-core-9.4.11.Final.jar:9.4.11.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_191]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]}}
> Shared stores should throw exception when cache is local
> --------------------------------------------------------
>
> Key: ISPN-10095
> URL: https://issues.jboss.org/browse/ISPN-10095
> Project: Infinispan
> Issue Type: Bug
> Components: Configuration, Core
> Affects Versions: 10.0.0.Beta3, 9.4.11.Final
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 10.0.0.Beta4, 9.4.12.Final
>
>
> A shared store does not make sense with a local cache, therefore we should throw a {{CacheConfigurationException}} if configured. Due to assumptions elsewhere in the PersistenceManager, prior to this fix a NPE will be thrown during the Purge method of the store as {{transport == null}}.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-7146) Expiration interval set to -1 doesn't disable the expiration thread
by Vladimir Dzhuvinov (Jira)
[ https://issues.jboss.org/browse/ISPN-7146?page=com.atlassian.jira.plugin.... ]
Vladimir Dzhuvinov updated ISPN-7146:
-------------------------------------
Summary: Expiration interval set to -1 doesn't disable the expiration thread (was: Expiration interval set to -1 behaves incorrectly)
> Expiration interval set to -1 doesn't disable the expiration thread
> -------------------------------------------------------------------
>
> Key: ISPN-7146
> URL: https://issues.jboss.org/browse/ISPN-7146
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 8.2.4.Final
> Reporter: Vladimir Dzhuvinov
> Assignee: Will Burns
> Priority: Major
>
> According to the guide and XML docs <expiration interval="-1"/> disables the expiration thread. But it doesn't, and expiration proceeds to run every 1 minute (which is the default behaviour when the expiration setting is omitted).
> Later I found that it takes <expiration interval="0"/> to disable the expiration thread.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-7146) Expiration interval set to -1 behaves incorrectly
by Vladimir Dzhuvinov (Jira)
[ https://issues.jboss.org/browse/ISPN-7146?page=com.atlassian.jira.plugin.... ]
Vladimir Dzhuvinov edited comment on ISPN-7146 at 3/30/19 3:35 AM:
-------------------------------------------------------------------
The issue is still present in 9.4.11.Final.
According to the config schema docs and JavaDocs -1 is still given as the value to disable the thread:
_interval long 60000 Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores. If you wish to disable the periodic eviction process altogether, set interval to -1._
When checking the XML config for `interval="-1"` programmatically Infinispan returns 60000:
{{Configuration.expiration().wakeUpInterval()}}
was (Author: vdzhuvinov):
The issue is still present in 9.4.11.Final.
According to the config schema docs and JavaDocs -1 is still given as the value to disable the thread:
_interval long 60000 Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores. If you wish to disable the periodic eviction process altogether, set interval to -1._
> Expiration interval set to -1 behaves incorrectly
> -------------------------------------------------
>
> Key: ISPN-7146
> URL: https://issues.jboss.org/browse/ISPN-7146
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 8.2.4.Final
> Reporter: Vladimir Dzhuvinov
> Assignee: Will Burns
> Priority: Major
>
> According to the guide and XML docs <expiration interval="-1"/> disables the expiration thread. But it doesn't, and expiration proceeds to run every 1 minute (which is the default behaviour when the expiration setting is omitted).
> Later I found that it takes <expiration interval="0"/> to disable the expiration thread.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-7146) Expiration interval set to -1 behaves incorrectly
by Vladimir Dzhuvinov (Jira)
[ https://issues.jboss.org/browse/ISPN-7146?page=com.atlassian.jira.plugin.... ]
Vladimir Dzhuvinov updated ISPN-7146:
-------------------------------------
Priority: Major (was: Minor)
> Expiration interval set to -1 behaves incorrectly
> -------------------------------------------------
>
> Key: ISPN-7146
> URL: https://issues.jboss.org/browse/ISPN-7146
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 8.2.4.Final
> Reporter: Vladimir Dzhuvinov
> Assignee: Will Burns
> Priority: Major
>
> According to the guide and XML docs <expiration interval="-1"/> disables the expiration thread. But it doesn't, and expiration proceeds to run every 1 minute (which is the default behaviour when the expiration setting is omitted).
> Later I found that it takes <expiration interval="0"/> to disable the expiration thread.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-7146) Expiration interval set to -1 behaves incorrectly
by Vladimir Dzhuvinov (Jira)
[ https://issues.jboss.org/browse/ISPN-7146?page=com.atlassian.jira.plugin.... ]
Vladimir Dzhuvinov commented on ISPN-7146:
------------------------------------------
The issue is still present in 9.4.11.Final.
According to the config schema docs and JavaDocs -1 is still given as the value to disable the thread:
_interval long 60000 Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores. If you wish to disable the periodic eviction process altogether, set interval to -1._
> Expiration interval set to -1 behaves incorrectly
> -------------------------------------------------
>
> Key: ISPN-7146
> URL: https://issues.jboss.org/browse/ISPN-7146
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 8.2.4.Final
> Reporter: Vladimir Dzhuvinov
> Assignee: Will Burns
> Priority: Minor
>
> According to the guide and XML docs <expiration interval="-1"/> disables the expiration thread. But it doesn't, and expiration proceeds to run every 1 minute (which is the default behaviour when the expiration setting is omitted).
> Later I found that it takes <expiration interval="0"/> to disable the expiration thread.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months
[JBoss JIRA] (ISPN-10098) Remove misc deprecated server code
by Ryan Emerson (Jira)
Ryan Emerson created ISPN-10098:
-----------------------------------
Summary: Remove misc deprecated server code
Key: ISPN-10098
URL: https://issues.jboss.org/browse/ISPN-10098
Project: Infinispan
Issue Type: Enhancement
Components: Configuration, Server
Affects Versions: 10.0.0.Beta3
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Fix For: 10.0.0.Beta4
There are many examples in the server code of dangling ModelKeys, attributes etc that have been deprecated but not removed.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 8 months