[
https://issues.apache.org/jira/browse/OAK-12439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Reschke closed OAK-12439.
--------------------------------
> Restart reconfigured oak-run logging contexts to stop orphaned scanners
> -----------------------------------------------------------------------
>
> Key: OAK-12439
> URL: https://issues.apache.org/jira/browse/OAK-12439
> Project: Jackrabbit Oak
> Issue Type: Bug
> Reporter: Rishabh Daim
> Assignee: Rishabh Daim
> Priority: Major
> Fix For: 2.8.0
>
>
> Repeated oak-run commands in one JVM can leave a Logback configuration
> scanner running after shutdown. It can reload after oak.workDir is cleared
> and create {{oak.workDir_IS_UNDEFINED/indexing.log}} outside the build
> directory, failing RAT.
> OAK-10339 exposed the issue in [commit
> 50bde7adad|https://github.com/apache/jackrabbit-oak/commit/50bde7adad3c8361447f5e06ce32413e8776d8e6]
> by upgrading Logback 1.2.13 to 1.6.4. The new LoggerContext.stop() returns
> immediately for an already-stopped context; LoggingInitializer reconfigured
> that context without restarting it. This is independent of the cache changes.
> Restart the context after successful configuration so shutdown closes
> appenders and cancels scanners. Preserve the custom-configuration opt-out.
> Tests cover repeated lifecycle cleanup, malformed configuration and isolation
> from shared logging. Java 17 verification passes: 249 tests, one existing
> skip; packaging and RAT pass.
> [PR #3193|https://github.com/apache/jackrabbit-oak/pull/3193] ยท [Affected CI
> run|https://github.com/apache/jackrabbit-oak/actions/runs/37422282668/job/112134394437]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)