You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Nuno Santos (Jira)" <ji...@apache.org> on 2026/10/07 13:42:00 UTC
[jira] [Resolved] (OAK-12419) Log per-phase timing in TarFiles.init() and cleanup()
[ https://issues.apache.org/jira/browse/OAK-12419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nuno Santos resolved OAK-12419.
-------------------------------
Fix Version/s: 2.8.0
Resolution: Fixed
> Log per-phase timing in TarFiles.init() and cleanup()
> -----------------------------------------------------
>
> Key: OAK-12419
> URL: https://issues.apache.org/jira/browse/OAK-12419
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Reporter: Nuno Santos
> Priority: Major
> Fix For: 2.8.0
>
>
> {{TarFiles#init()}} (archive discovery, parallel reader opening, sequential recovery of unclosed archives, writer setup) and {{TarFiles#cleanup()}} (writer cycling, mark, sweep, swept-reader-list build/CAS-publish, closing superseded readers) are both multi-phase operations, but currently only log a final result with no breakdown of where time was spent. This makes it difficult to diagnose slow startup or slow cleanup cycles in the field.
> Add {{System.nanoTime()}}-based timing around each phase of both methods and log a per-phase breakdown plus a summary line at the end of each method, formatted with {{TimeDurationFormatter}}. Purely additive logging — no change to control flow, locking, or return values.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)