Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360501 - CDOQuery memory leak with getResult
Summary: CDOQuery memory leak with getResult
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-11 03:22 EDT by Per Sterner CLA
Modified: 2012-09-21 07:18 EDT (History)
0 users

See Also:


Attachments
Patch v1 (934 bytes, patch)
2011-10-11 05:32 EDT, Eike Stepper CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Per Sterner CLA 2011-10-11 03:22:31 EDT
Build Identifier: 4.0.0-R20110608-1407

Instances of some classes are leaking when using CDOQuery.getResult.

Forumentry: http://www.eclipse.org/forums/index.php/t/245302/

Reproducible: Always

Steps to Reproduce:
1. CDOQuery cdoq = cdoView.createQuery("sql", sql);
2. Iterator<T> it = cdoq.getResult(cl).iterator();
Comment 1 Per Sterner CLA 2011-10-11 03:25:41 EDT
When using 'getResultAsync' there is no leak:

CloseableIterator<T> it = cdoquery.getResultAsync(cl);
try {
 ....
} finally {
  it.close();
}
Comment 2 Eike Stepper CLA 2011-10-11 05:32:23 EDT
Created attachment 204935 [details]
Patch v1
Comment 3 Eike Stepper CLA 2011-10-11 08:31:09 EDT
Committed revision 9475:
- trunk/plugins/org.eclipse.emf.cdo
Comment 4 Eike Stepper CLA 2011-10-11 13:05:07 EDT
Fixed
Comment 5 Eike Stepper CLA 2012-09-21 07:18:42 EDT
Closing.