[JBoss JIRA] Created: (JBCACHE-1603) Default eviction wakeupIntervalSeconds is 5000 with legacy configuration
by Dennis Reed (JIRA)
Default eviction wakeupIntervalSeconds is 5000 with legacy configuration
------------------------------------------------------------------------
Key: JBCACHE-1603
URL: https://issues.jboss.org/browse/JBCACHE-1603
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Eviction
Affects Versions: 3.2.7.GA
Reporter: Dennis Reed
Assignee: Dennis Reed
When using the legacy eviction policy configuration format:
<attribute name="EvictionPolicyConfig">
<config>
<region name="/_default_" policyClass="org.jboss.cache.eviction.LRUPolicy">
<attribute name="timeToLiveSeconds">60</attribute>
</region>
</config>
</attribute>
without specifying wakeUpIntervalSeconds, the default is set to 5000 seconds instead of 5.
(due to a mixup between milliseconds and seconds).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] Created: (JBCACHE-1600) CacheJmxWrapper ignores ClusterConfig attribute
by Dennis Reed (JIRA)
CacheJmxWrapper ignores ClusterConfig attribute
-----------------------------------------------
Key: JBCACHE-1600
URL: https://issues.jboss.org/browse/JBCACHE-1600
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JMX
Affects Versions: 3.2.5.GA
Reporter: Dennis Reed
Assignee: Dennis Reed
Attachments: test-service.xml
When creating a cache using the CacheJmxWrapper:
<mbean code="org.jboss.cache.jmx.CacheJmxWrapper" name="test:service=TreeCache">
<attribute name="CacheMode">REPL_SYNC</attribute>
<attribute name="ClusterName">Test</attribute>
<attribute name="ClusterConfig">
<config>
<TCP start_port="12345"
the ClusterConfig section is ignored, and a default JGroups configuration is used.
The root cause is CacheJmxWrapper#setClusterConfig parses the contents of <ClusterConfig>,
but doesn't save it, and always sets the result to null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months
[JBoss JIRA] Created: (JBCACHE-1585) JBossCache eviction thread creating a Timer without making the new thread a daemon thread
by Mats Henrikson (JIRA)
JBossCache eviction thread creating a Timer without making the new thread a daemon thread
-----------------------------------------------------------------------------------------
Key: JBCACHE-1585
URL: https://jira.jboss.org/browse/JBCACHE-1585
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 1.4.1.SP13
Reporter: Mats Henrikson
Assignee: Manik Surtani
There is a problem where the class org.jboss.cache.eviction.RegionManager.EvictionTreeCacheListener.cacheStarted(), line 499:
{code}
evictionThread_ = new Timer();
{code}
Since the new Timer() is created without telling it that it is a daemon thread this Timer thread will actually cause the JVM to not exit when the main() method of the application finishes - it makes it necessary to call System.exit() to shut the JVM down.
Since this is the thread that periodically runs the specified eviction policy there is no need for it to cause the JVM to stay running - it's up to the developer to say if the JVM should stay running or not, not JBossCache.
The line should be changed to something like:
{code}
evictionThread_ = new Timer(true);
{code}
in order to specify that this is a daemon thread. (At the same time it would also be good if the Timer is passed a thread name like for instance "JBossCache Eviction Thread".)
Please see the JDK docs for more info:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Timer.html#Timer(java.l...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 2 months