nfsantos commented on code in PR #1629:
URL: https://github.com/apache/jackrabbit-oak/pull/1629#discussion_r1710820121
##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/IndexerStatisticsTracker.java:
##########
@@ -0,0 +1,72 @@
+package org.apache.jackrabbit.oak.index.indexer.document;
+
+import org.apache.jackrabbit.oak.plugins.index.FormattingUtils;
+import org.slf4j.Logger;
+
+public final class IndexerStatisticsTracker {
+ private static final int SLOW_DOCUMENT_LOG_THRESHOLD =
Integer.getInteger("oak.indexer.slowDocumentLogThreshold", 1000);
+
+ private final Logger logger;
+
+ // Timestamp of when indexing started.
+ private long startIndexingNanos = 0;
+ // Time spent indexing entries. Should be almost the same as
totalMakeDocumentTimeNanos+totalWriteTimeNanos
+ private long totalIndexingTimeNanos = 0;
+ // Time making generating the Lucene document.
Review Comment:
Yes, typo. Fixed.
--
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]