[infinispan-issues] [JBoss JIRA] Resolved: (ISPN-220) Test suite has memory leaks
Vladimir Blagojevic (JIRA)
jira-events at lists.jboss.org
Mon Oct 12 15:48:05 EDT 2009
[ https://jira.jboss.org/jira/browse/ISPN-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Blagojevic resolved ISPN-220.
--------------------------------------
Resolution: Done
Resolved. Introduced AbstractInfinispanTest as a superclass of all test classes. For more details see fisheye tab.
> Test suite has memory leaks
> ---------------------------
>
> Key: ISPN-220
> URL: https://jira.jboss.org/jira/browse/ISPN-220
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 4.0.0.BETA2
> Reporter: Vladimir Blagojevic
> Assignee: Vladimir Blagojevic
> Fix For: 4.0.0.CR1
>
> Attachments: biggest_leakers.zip, infinispan_leak.zip
>
>
> During an execution of a test suite TestNG keeps references to all executed test class instances. Some of our test classes keep references to instantiated caches, cache managers, and other heavy weight objects thus preventing those references from ever being garbage collected.
> Our test classes should *never* keep references to heavyweight objects other than in a test method scope. If we must keep reference to a cache or a cache manager in a class scope these references should be cleared and nulled in a method annotated with @AfterClass.
> Since TestNG does not traverse class hierarchy for invocation of @AfterClass annotated methods we have to ensure that every @AfterClass method is invoked in test class hierarchy (i.e call super).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list