You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Selcuk Aya (JIRA)" <ji...@apache.org> on 2011/08/30 11:29:37 UTC
[jira] [Created] (DIRSERVER-1649) Cursor leak at
SubEntryInterceptor and DupsContainter.java
Cursor leak at SubEntryInterceptor and DupsContainter.java
----------------------------------------------------------
Key: DIRSERVER-1649
URL: https://issues.apache.org/jira/browse/DIRSERVER-1649
Project: Directory ApacheDS
Issue Type: Bug
Components: core
Reporter: Selcuk Aya
While working on jdbm, found out that SubEntryInterceptor.java does not close the cursor at all some times. Also, at other times, even if the cursor is closed, it is not closed under a finally clause and there might be a cursor leak when an exception is thrown while cursor is moved back and forth.
The other issue is with DupsContainer.java. When it is closed, the contained cursor should be closed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DIRSERVER-1649) Cursor leak at
SubEntryInterceptor and DupsContainter.java
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny resolved DIRSERVER-1649.
------------------------------------------
Resolution: Fixed
Patch applied :
http://svn.apache.org/viewvc?rev=1163237&view=rev
thanks !
> Cursor leak at SubEntryInterceptor and DupsContainter.java
> ----------------------------------------------------------
>
> Key: DIRSERVER-1649
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1649
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: core
> Reporter: Selcuk Aya
> Attachments: cursor.diff
>
>
> While working on jdbm, found out that SubEntryInterceptor.java does not close the cursor at all some times. Also, at other times, even if the cursor is closed, it is not closed under a finally clause and there might be a cursor leak when an exception is thrown while cursor is moved back and forth.
> The other issue is with DupsContainer.java. When it is closed, the contained cursor should be closed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DIRSERVER-1649) Cursor leak at
SubEntryInterceptor and DupsContainter.java
Posted by "Selcuk Aya (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Selcuk Aya updated DIRSERVER-1649:
----------------------------------
Attachment: cursor.diff
Fixed the issue by closing the cursor in a finally close in SubEntryInterceptor.java and closing the contained cursor in DupsContainer.java
> Cursor leak at SubEntryInterceptor and DupsContainter.java
> ----------------------------------------------------------
>
> Key: DIRSERVER-1649
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1649
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: core
> Reporter: Selcuk Aya
> Attachments: cursor.diff
>
>
> While working on jdbm, found out that SubEntryInterceptor.java does not close the cursor at all some times. Also, at other times, even if the cursor is closed, it is not closed under a finally clause and there might be a cursor leak when an exception is thrown while cursor is moved back and forth.
> The other issue is with DupsContainer.java. When it is closed, the contained cursor should be closed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira