stefan-egli commented on code in PR #1278:
URL: https://github.com/apache/jackrabbit-oak/pull/1278#discussion_r1466391053


##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/ClusterNodeInfo.java:
##########
@@ -229,6 +234,12 @@ static RecoverLockState fromString(String state) {
     /** OAK-3399 : max number of times we're doing a 1sec retry loop just 
before declaring lease failure **/
     private static final int MAX_RETRY_SLEEPS_BEFORE_LEASE_FAILURE = 5;
 
+    /** OAK-10622 : seconds to prevent reuse of clusterId if it crashed and 
thus required a recover */
+    private static final int DEFAULT_REUSE_AFTER_RECOVERY_SECS = 
SystemPropertySupplier.create("oak.documentMK.reuseDelayAfterRecoverySecs", -1)
+            .loggingTo(LOG).validateWith(value -> value >= -1)
+            .formatSetMessage((name, value) -> String.format("Reuse delay 
after recovery set to (secs): %ss (using system property %s)", name, 
value)).get();
+    public static final int DEFAULT_REUSE_AFTER_RECOVERY_MILLIS = 1000 * 
DEFAULT_REUSE_AFTER_RECOVERY_SECS;

Review Comment:
   done at 
https://github.com/apache/jackrabbit-oak/pull/1278/commits/697668209d86295004cde06ccaf3bd9c8585fdd3



-- 
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: dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to