EHC ❯ SlewClock use long for DRIFT_MAXIMAL but set-able value is integer range
-
Bug
-
Status: New
-
2 Major
-
Resolution:
-
ehcache
-
-
ljacomet
-
Reporter: jsomsani
-
April 01, 2014
-
1
-
Watchers: 2
-
April 14, 2014
-
Description
Class SlewClock has a long parameter DRIFT_MAXIMAL. But Integer class is used to set the valeur : Integer.getInteger(“net.sf.ehcache.util.Timestamper.drift.max”, 50)
So the max value is Integer.MAX_VALUE with represent around 23 days. We currently have a problem with this limitation.
This fix is only the use of Long class : Long.getLong(“net.sf.ehcache.util.Timestamper.drift.max”, 50)