You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stephane Bailliez (JIRA)" <di...@incubator.apache.org> on 2005/05/07 01:48:07 UTC

[jira] Created: (DIREVE-155) CoreContextFactory keeps reference to resources after shutdown

CoreContextFactory keeps reference to resources after shutdown
--------------------------------------------------------------

         Key: DIREVE-155
         URL: http://issues.apache.org/jira/browse/DIREVE-155
     Project: Directory Server
        Type: Bug
  Components: server main  
    Reporter: Stephane Bailliez
 Assigned to: Alex Karasulu 


I'm trying to build apacheds on windows and tests fails because it is unable to delete database files created during tests.
Here is the typical stacktrace I get when running tests:

Unable to delete file: target\apacheds\apacheUpdn.lg
java.io.IOException: Unable to delete file: target\apacheds\apacheUpdn.lg
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:659)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:540)
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:509)
	at org.apache.ldap.server.AbstractCoreTest.doDelete(AbstractCoreTest.java:144)
	at org.apache.ldap.server.AbstractCoreTest.setUp(AbstractCoreTest.java:128)
	at org.apache.ldap.server.authn.SimpleAuthenticationTest.setUp(SimpleAuthenticationTest.java:90)

As far as I can see, it might be because org.apache.ldap.server.jndi.CoreContextFactory keeps references to SystemPartition, GlobalRegistries and RootNexus which themselves hold references to JDBMDatabase which probably hold references to db files.

The shutdown command does not close and clean these references which does not show under linux when doing a brute force file directory deletion, but with windows as it is not possible to delete files which handles are not released it might be the cause of the problem.
 I'm investigating but I'm missing a lot of the logic behind it and the problem might go even deeper.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DIREVE-155) CoreContextFactory keeps reference to resources after shutdown

Posted by "Trustin Lee (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-155?page=all ]
     
Trustin Lee resolved DIREVE-155:
--------------------------------

    Fix Version: 0.9.1
     Resolution: Fixed

This issue has been resolved.  Please check the branch 'direve-158'.

> CoreContextFactory keeps reference to resources after shutdown
> --------------------------------------------------------------
>
>          Key: DIREVE-155
>          URL: http://issues.apache.org/jira/browse/DIREVE-155
>      Project: Directory Server
>         Type: Bug
>   Components: server main
>     Reporter: Stephane Bailliez
>     Assignee: Alex Karasulu
>      Fix For: 0.9.1

>
> I'm trying to build apacheds on windows and tests fails because it is unable to delete database files created during tests.
> Here is the typical stacktrace I get when running tests:
> Unable to delete file: target\apacheds\apacheUpdn.lg
> java.io.IOException: Unable to delete file: target\apacheds\apacheUpdn.lg
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:659)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:540)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:509)
> 	at org.apache.ldap.server.AbstractCoreTest.doDelete(AbstractCoreTest.java:144)
> 	at org.apache.ldap.server.AbstractCoreTest.setUp(AbstractCoreTest.java:128)
> 	at org.apache.ldap.server.authn.SimpleAuthenticationTest.setUp(SimpleAuthenticationTest.java:90)
> As far as I can see, it might be because org.apache.ldap.server.jndi.CoreContextFactory keeps references to SystemPartition, GlobalRegistries and RootNexus which themselves hold references to JDBMDatabase which probably hold references to db files.
> The shutdown command does not close and clean these references which does not show under linux when doing a brute force file directory deletion, but with windows as it is not possible to delete files which handles are not released it might be the cause of the problem.
>  I'm investigating but I'm missing a lot of the logic behind it and the problem might go even deeper.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DIRSERVER-324) CoreContextFactory keeps reference to resources after shutdown

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-324.
---------------------------------------


Closing all issues created in 2005 and before which are marked resolved

> CoreContextFactory keeps reference to resources after shutdown
> --------------------------------------------------------------
>
>                 Key: DIRSERVER-324
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-324
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Stephane Bailliez
>         Assigned To: Alex Karasulu
>
> I'm trying to build apacheds on windows and tests fails because it is unable to delete database files created during tests.
> Here is the typical stacktrace I get when running tests:
> Unable to delete file: target\apacheds\apacheUpdn.lg
> java.io.IOException: Unable to delete file: target\apacheds\apacheUpdn.lg
> 	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:659)
> 	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:540)
> 	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:509)
> 	at org.apache.ldap.server.AbstractCoreTest.doDelete(AbstractCoreTest.java:144)
> 	at org.apache.ldap.server.AbstractCoreTest.setUp(AbstractCoreTest.java:128)
> 	at org.apache.ldap.server.authn.SimpleAuthenticationTest.setUp(SimpleAuthenticationTest.java:90)
> As far as I can see, it might be because org.apache.ldap.server.jndi.CoreContextFactory keeps references to SystemPartition, GlobalRegistries and RootNexus which themselves hold references to JDBMDatabase which probably hold references to db files.
> The shutdown command does not close and clean these references which does not show under linux when doing a brute force file directory deletion, but with windows as it is not possible to delete files which handles are not released it might be the cause of the problem.
>  I'm investigating but I'm missing a lot of the logic behind it and the problem might go even deeper.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.