nfsantos opened a new pull request, #3152: URL: https://github.com/apache/jackrabbit-oak/pull/3152
## Summary `GCNodeWriteMonitor#onNode()` currently logs cumulative counts and elapsed time in milliseconds every `gcProgressLog` nodes, but does not report a compaction rate, making it hard to tell from the logs alone whether compaction is speeding up, slowing down, or stalled. - Track the time and node count as of the last progress log message. - Log both the overall nodes/second rate since compaction started and the interval nodes/second rate since the last log message, using `TimeDurationFormatter` for human-readable durations instead of raw millisecond counts. - Add a summary log line to `finished()` (guarded so it only logs once) reporting the overall rate for the completed compaction cycle. Purely additive to the existing log message content — no behavioral change to compaction itself. Jira: https://issues.apache.org/jira/browse/OAK-12418 ## Test plan - `mvn -pl oak-segment-tar test -Dtest=GCNodeWriteMonitorTest` — 3/3 pass (new test class covering the progress log message shape/arguments, the `finished()` summary log firing exactly once, and end-to-end output via `LoggingGCMonitor`). -- 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]
