nit0906 commented on code in PR #1108:
URL: https://github.com/apache/jackrabbit-oak/pull/1108#discussion_r1319966260


##########
oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/editor/FulltextDocumentMaker.java:
##########
@@ -79,6 +90,9 @@ public FulltextDocumentMaker(@Nullable 
FulltextBinaryTextExtractor textExtractor
         this.path = checkNotNull(path);
         this.logWarnStringSizeThreshold = 
Integer.getInteger(WARN_LOG_STRING_SIZE_THRESHOLD_KEY,
                 DEFAULT_WARN_LOG_STRING_SIZE_THRESHOLD_VALUE);
+        this.throttleWarnLogs = Boolean.getBoolean(THROTTLE_WARN_LOGS_KEY);
+        this.throttleWarnLogThreshold = 
Integer.getInteger(THROTTLE_WARN_LOGS_THRESHOLD_KEY,
+                DEFAULT_THROTTLE_WARN_LOGS_THRESHOLD_VALUE);

Review Comment:
   good point - I made them static variables.



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