]
Dennis Reed updated WFLY-11970:
-------------------------------
Steps to Reproduce:
Access an SFSB.
Change the system time backwards before the SFSB expiration time elapses.
SFSB memory leak due to Date() usage
------------------------------------
Key: WFLY-11970
URL:
https://issues.jboss.org/browse/WFLY-11970
Project: WildFly
Issue Type: Bug
Components: EJB
Affects Versions: 11.0.0.Final
Reporter: Dennis Reed
Assignee: Paul Ferraro
Priority: Critical
SFSB tracks expiration with "new Date().getTime()" and
"System.currentTimeMillis()".
But the expiration threads are scheduled (inside JDK classes) with System.nanoTime().
If the expiration task runs before the bean is considered expired, the expiration check
fails and the bean is never expired.