[jboss-jira] [JBoss JIRA] (WFLY-11970) SFSB memory leak due to Date() usage

Dennis Reed (Jira) issues at jboss.org
Sat Apr 20 22:42:00 EDT 2019


     [ https://issues.jboss.org/browse/WFLY-11970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Reed updated WFLY-11970:
-------------------------------
    Steps to Reproduce: 
Access an SFSB.
Change the system time backwards before the SFSB expiration time elapses (I ran "date", then copy/pasted it into "date -s" several seconds later).
Wait sufficient time for expiration (and potential retry) and attempt to access bean again.

Expected: bean no longer exists.
Actual: bean never expires.

  was:
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
>              Labels: downstream_dependency
>             Fix For: 17.0.0.Beta1
>
>
> 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.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list