nfsantos opened a new pull request, #3153:
URL: https://github.com/apache/jackrabbit-oak/pull/3153

   ## Summary
   `TarFiles#init()` (archive discovery, parallel reader opening, writer setup) 
and `TarFiles#cleanup()` (writer cycling, mark, sweep, swept-reader-list 
build/CAS-publish, closing superseded readers) are both multi-phase operations, 
but previously only logged 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.
   
   Jira: https://issues.apache.org/jira/browse/OAK-12419
   
   ## Test plan
   - `mvn -pl oak-segment-tar test -Dtest=TarFilesTest` — 22/22 pass; new log 
lines observed in the surefire output for both `init()` and `cleanup()`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to