Bug 910193 - ejb timer service creates empty directories for all ejbs including those without timers
Summary: ejb timer service creates empty directories for all ejbs including those with...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER3
: EAP 6.1.1
Assignee: Jaikiran Pai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-12 00:24 UTC by Brad Maxwell
Modified: 2018-12-02 18:40 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In previous versions of Red Hat JBoss Enterprise Application Platform 6, it was found that the EJB timer service was being created for every bean that was eligible to have a timer service, rather than being limited to beans actually using a timer. As a result the service would create unnecessary directories to store timer data when the service started. This issue has been resolved and a timer service is now only started for beans that have timeout or schedule methods. Other EJBs use a non-functional timer service that can still be looked up in JNDI (as per the Java EE specification) but does not schedule timers (as the EJB does not have a timeout method).
Clone Of:
Environment:
Last Closed: 2013-09-16 20:24:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker AS7-6357 0 Minor Resolved ejb timer service creates empty directories for all ejbs including those without timers 2015-07-14 20:12:58 UTC

Description Brad Maxwell 2013-02-12 00:24:39 UTC
Description of problem:

ejb timer service creates empty directories for all ejbs including those without timers

Empty directories are being created for all ejbs, even those that do not use timers.

$JBOSS_HOME/.../data/timer-service-data/

Version-Release number of selected component (if applicable):

JBoss EAP 6.0.1

How reproducible:

Steps to Reproduce:
1. Deploy an ejb jar that does not use timers
2. You will see an empty directory created in $JBOSS_HOME/.../data/timer-service-data/
  
Actual results:

An empty directory is created here: $JBOSS_HOME/.../data/timer-service-data/

Expected results:

No directory is created when the EJB does not use a timer

Additional info:

Comment 1 JBoss JIRA Server 2013-03-01 02:58:12 UTC
Stuart Douglas <stuart.w.douglas> updated the status of jira AS7-6357 to Resolved

Comment 6 Jan Martiska 2013-07-22 11:19:55 UTC
Verified in EAP 6.1.1.ER3

Comment 7 Scott Mumford 2013-08-20 05:14:54 UTC
Jaikiran, can I request some deeper explanation of how this was rectified and what was causing it? 

Ideally we need to know what the problem was in the code, how this manifested in the product (in this case, creating empty folders), what was changed to fix it,  and how the product behaves now (I assume it no longer creates unnecessary folders).

Thanks for any assistance you can offer.

Comment 8 Stuart Douglas 2013-08-20 06:37:51 UTC
The timer service was being created for every EJB that was eligible to have a timer service, and as a result it would eagerly create a directory to store the timer data when the service started. 

Now we only start a real timer service for EJB's that have timeout or schedule methods, other EJB's just use a non-functional timer service, that can still be looked up in JNDI as per the Java EE specs, but does not allow you to schedule timers (as the EJB does not have a timeout method).

Comment 9 Scott Mumford 2013-08-21 00:27:48 UTC
Thanks for the input Stuart.

I've added a release note and marked it for inclusion in the document.

Please comment if the text above is inaccurate in any way.


Note You need to log in before you can comment on or make changes to this bug.