You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2008/04/27 01:42:56 UTC
[jira] Commented: (JCR-1551) TransientRepository: application
doesn't exist quickly
[ https://issues.apache.org/jira/browse/JCR-1551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592606#action_12592606 ]
Jukka Zitting commented on JCR-1551:
------------------------------------
The shutdown delay seems to be caused by the static DynamicPooledExecutor instance introduced in JCR-1222.
> TransientRepository: application doesn't exist quickly
> ------------------------------------------------------
>
> Key: JCR-1551
> URL: https://issues.apache.org/jira/browse/JCR-1551
> Project: Jackrabbit
> Issue Type: Bug
> Components: jackrabbit-core
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Minor
>
> When using the TransientRepository, the repository should be closed when the last session logs out. This works, but in some cases there is a very long (60 seconds) delay between closing the last session and closing the repository.
> Test case:
> public static void main(String[] args) throws Exception {
> Repository repository = new TransientRepository();
> Session session = repository.login(new SimpleCredentials("", new char[0]));
> session.getRootNode().setProperty("a", "0");
> session.save(); // very quick logout without this line
> session.logout();
> System.out.println("Logout...");
> final long time = System.currentTimeMillis();
> Runtime.getRuntime().addShutdownHook(new Thread() {
> public void run() {
> System.out.println("End after: " + (System.currentTimeMillis() - time));
> }
> });
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.