Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9959

RepositoryImpl.shutdown() takes way too long in case of unclosed Sessions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.44.0
    • 1.46.0
    • jcr
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: