[ 
https://issues.apache.org/jira/browse/OAK-9959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated OAK-9959:
---------------------------------
    Description: 
For ITs I have to spin up new in-memory repositories for individual tests and 
shut them down afterwards. While the startup time is really good, I loose 
almost 5 seconds while calling {{RepositoryImpl.shutdown()}} 
(https://github.com/apache/jackrabbit-oak/blob/cde907088a5c460178fd714cb4edc141cd45e23d/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/repository/RepositoryImpl.java#L348)
 during closing the {{scheduledExecutor}}.

This only happens though when there are unclosed sessions due to this executor 
which is scheduled to run after 1 minute: 
https://github.com/apache/jackrabbit-oak/blob/cde907088a5c460178fd714cb4edc141cd45e23d/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/repository/RepositoryImpl.java#L324.

Would be good though to speed up shutdown even in the case of unclosed sessions.

  was:For ITs I have to spin up new in-memory repositories for individual tests 
and shut them down afterwards. While the startup time is really good, I loose 
almost 5 seconds while calling {{RepositoryImpl.shutdown()}} 
(https://github.com/apache/jackrabbit-oak/blob/cde907088a5c460178fd714cb4edc141cd45e23d/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/repository/RepositoryImpl.java#L348)
 during closing the {{scheduledExecutor}}.


> RepositoryImpl.shutdown() takes way too long
> --------------------------------------------
>
>                 Key: OAK-9959
>                 URL: https://issues.apache.org/jira/browse/OAK-9959
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: jcr
>    Affects Versions: 1.44.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> For ITs I have to spin up new in-memory repositories for individual tests and 
> shut them down afterwards. While the startup time is really good, I loose 
> almost 5 seconds while calling {{RepositoryImpl.shutdown()}} 
> (https://github.com/apache/jackrabbit-oak/blob/cde907088a5c460178fd714cb4edc141cd45e23d/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/repository/RepositoryImpl.java#L348)
>  during closing the {{scheduledExecutor}}.
> This only happens though when there are unclosed sessions due to this 
> executor which is scheduled to run after 1 minute: 
> https://github.com/apache/jackrabbit-oak/blob/cde907088a5c460178fd714cb4edc141cd45e23d/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/repository/RepositoryImpl.java#L324.
> Would be good though to speed up shutdown even in the case of unclosed 
> sessions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to