[jboss-jira] [JBoss JIRA] (WFLY-5221) TimerServiceTimerService.getTimers() returns not only the associated timer entries for the current Bean

Stuart Douglas (JIRA) issues at jboss.org
Thu Aug 27 19:53:05 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-5221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102942#comment-13102942 ] 

Stuart Douglas commented on WFLY-5221:
--------------------------------------

TimerServiceImpl.waitingOnTxCompletionKey should not be static. This resulted in all timers that were created in the current transaction being returned from getAllTimers(). My example above used a single TX per call, which is why it could not reproduce it. 

> TimerServiceTimerService.getTimers() returns not only the associated timer entries for the current Bean
> -------------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-5221
>                 URL: https://issues.jboss.org/browse/WFLY-5221
>             Project: WildFly
>          Issue Type: Bug
>            Reporter: Wolf-Dieter Fink
>            Assignee: Wolf-Dieter Fink
>            Priority: Blocker
>
> According to the spec [1] the getTimers() method must only return timers associated to the current EJB.
> This is a huge issue if timers are cancled by this collection as it will remove all timers!
> [1] https://docs.oracle.com/javaee/6/api/javax/ejb/TimerService.html#getTimers%28%29



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list