smiklosovic commented on code in PR #4737:
URL: https://github.com/apache/cassandra/pull/4737#discussion_r3101291148


##########
src/java/org/apache/cassandra/service/DataResurrectionCheck.java:
##########
@@ -158,6 +160,38 @@ static File getHeartbeatFile(Map<String, Object> config)
         return heartbeatFile;
     }
 
+    static long getMinimumThreshold(Map<String, Object> config)
+    {
+        String minimumThresholdConfigValue = (String) 
config.get(MINIMUM_THRESHOLD_CONFIG_PROPERTY);
+        long minimumThresholdInMs;
+        if (minimumThresholdConfigValue != null)
+        {
+            try
+            {
+                minimumThresholdInMs = new 
DurationSpec.IntMinutesBound(minimumThresholdConfigValue).to(MILLISECONDS);

Review Comment:
   changed to `new 
DurationSpec.LongSecondsBound(minimumThresholdConfigValue).to(MILLISECONDS)`



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to