This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247006 - Leaking queries
Summary: Leaking queries
Status: REOPENED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Team Framework (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-10 17:36 UTC by Tomas Pavek
Modified: 2015-05-06 12:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Pavek 2014-09-10 17:36:20 UTC
Observed with ODCS tasks but maybe the problem exists for other bugtracking systems too.

With repeated login/logout to/from ODCS team server there are new data structures accumulating about queries, mainly ODCSQuery$PredefinedQuery, ODCSQueryController, QueryIpml, QueryPanel. They are held by RepositoryImpl.queryMap - through the keys which are ODCSQuery and have a strong chain of references to QueryImpl which prevents the WeakReference to QueryImpl used in the map values from being released.

I can provide heap dump on request.

QueryImpl <-QueryImpl$IssueContainerIntern <- QueryProvider$IssueContainer <- ODCSQueryController <- ODCSQuery$PredefinedQuery <- queryMap in RepositoryImpl
Comment 1 Tomas Stupka 2014-09-12 15:13:42 UTC
fixed in core-main #2daabe95f6c8
Comment 2 Tomas Stupka 2014-09-12 15:15:59 UTC
fixed only the reported case. QueryImpl is still referenced on the way from the team dashboard
Comment 3 Quality Engineering 2014-09-13 04:52:58 UTC
Integrated into 'main-silver', will be available in build *201409130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2daabe95f6c8
User: Tomas Stupka <tstupka@netbeans.org>
Log: see that IssueContainerIntern doesn't hold references to QueryImpl
Issue #247006 - Leaking queries