Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360501

Summary: CDOQuery memory leak with getResult
Product: [Modeling] EMF Reporter: Per Sterner <Per.Sterner>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3    
Version: 4.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch v1 none

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.