Commit 29ebef2e authored by GregDThomas's avatar GregDThomas Committed by daryl herzmann

OF-1210 Correct the cache behaviour for Hazelcast backed caches (#661)

* Ensure that the default cache behaviour for Hazelcast backed caches is
correct.
Also, correct minor error when setting the maxLifetime of a ClusteredCache

* Bump the version number, update the changelog

* Correct the changelog to reference the OF JIRA

* Update plugin.xml

US style dates :(
parent 45cc834a
...@@ -44,10 +44,15 @@ ...@@ -44,10 +44,15 @@
Hazelcast Clustering Plugin Changelog Hazelcast Clustering Plugin Changelog
</h1> </h1>
<p><b>2.2.1</b> -- November 4, 2016</p>
<ul>
<li>[<a href='http://www.igniterealtime.org/issues/browse/OF-1210'>OF-1210</a>] - correct time-to-live-seconds and MaxLifetime settings for hazelcast</li>
</ul>
<p><b>2.2.0</b> -- October 12, 2015</p> <p><b>2.2.0</b> -- October 12, 2015</p>
<ul> <ul>
<li>[<a href='http://www.igniterealtime.org/issues/browse/OF-953'>OF-953</a>] - Updated JSP libraries.</li> <li>[<a href='http://www.igniterealtime.org/issues/browse/OF-953'>OF-953</a>] - Updated JSP libraries.</li>
<li>Requires Openfire 3.11.0.</li> <li>Requires Openfire 4.0.0</li>
</ul> </ul>
<p><b>2.1.2</b> -- September 16, 2015</p> <p><b>2.1.2</b> -- September 16, 2015</p>
......
...@@ -420,6 +420,7 @@ ...@@ -420,6 +420,7 @@
<read-backup-data>true</read-backup-data> <read-backup-data>true</read-backup-data>
<max-size policy="PER_NODE">100000</max-size> <max-size policy="PER_NODE">100000</max-size>
<max-idle-seconds>3600</max-idle-seconds> <max-idle-seconds>3600</max-idle-seconds>
<time-to-live-seconds>900</time-to-live-seconds>
<eviction-policy>LRU</eviction-policy> <eviction-policy>LRU</eviction-policy>
</map> </map>
<map name="Group"> <map name="Group">
...@@ -427,6 +428,7 @@ ...@@ -427,6 +428,7 @@
<read-backup-data>true</read-backup-data> <read-backup-data>true</read-backup-data>
<max-size policy="PER_NODE">100000</max-size> <max-size policy="PER_NODE">100000</max-size>
<max-idle-seconds>3600</max-idle-seconds> <max-idle-seconds>3600</max-idle-seconds>
<time-to-live-seconds>900</time-to-live-seconds>
<eviction-policy>LRU</eviction-policy> <eviction-policy>LRU</eviction-policy>
</map> </map>
<map name="Roster"> <map name="Roster">
...@@ -434,6 +436,7 @@ ...@@ -434,6 +436,7 @@
<read-backup-data>true</read-backup-data> <read-backup-data>true</read-backup-data>
<max-size policy="PER_NODE">100000</max-size> <max-size policy="PER_NODE">100000</max-size>
<max-idle-seconds>3600</max-idle-seconds> <max-idle-seconds>3600</max-idle-seconds>
<time-to-live-seconds>21600</time-to-live-seconds>
<eviction-policy>LRU</eviction-policy> <eviction-policy>LRU</eviction-policy>
</map> </map>
<map name="User"> <map name="User">
...@@ -441,6 +444,7 @@ ...@@ -441,6 +444,7 @@
<read-backup-data>true</read-backup-data> <read-backup-data>true</read-backup-data>
<max-size policy="PER_NODE">100000</max-size> <max-size policy="PER_NODE">100000</max-size>
<max-idle-seconds>3600</max-idle-seconds> <max-idle-seconds>3600</max-idle-seconds>
<time-to-live-seconds>1800</time-to-live-seconds>
<eviction-policy>LRU</eviction-policy> <eviction-policy>LRU</eviction-policy>
</map> </map>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<name>${plugin.name}</name> <name>${plugin.name}</name>
<description>${plugin.description}</description> <description>${plugin.description}</description>
<author>Tom Evans</author> <author>Tom Evans</author>
<version>2.2.0</version> <version>2.2.1</version>
<date>10/12/2015</date> <date>11/04/2016</date>
<minServerVersion>4.0.0</minServerVersion> <minServerVersion>4.0.0</minServerVersion>
</plugin> </plugin>
...@@ -160,7 +160,7 @@ public class ClusteredCache implements Cache { ...@@ -160,7 +160,7 @@ public class ClusteredCache implements Cache {
} }
public void setMaxLifetime(long maxLifetime) { public void setMaxLifetime(long maxLifetime) {
CacheFactory.setMaxSizeProperty(getName(), maxLifetime); CacheFactory.setMaxLifetimeProperty(getName(), maxLifetime);
} }
public void destroy() { public void destroy() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment