Nuno Santos created OAK-12419:
---------------------------------

             Summary: 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


{{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)

Reply via email to