Mmuzaf commented on code in PR #2046:
URL: https://github.com/apache/cassandra/pull/2046#discussion_r1153587465


##########
src/java/org/apache/cassandra/gms/FailureDetector.java:
##########
@@ -93,16 +95,14 @@ public FailureDetector()
 
     private static long getInitialValue()
     {
-        String newvalue = System.getProperty("cassandra.fd_initial_value_ms");
-        if (newvalue == null)
-        {
+        Long newValue = FD_INITIAL_VALUE_MS.getLong();
+        if (newValue == null)
             return Gossiper.intervalInMillis * 2;
-        }
-        else
-        {
-            logger.info("Overriding FD INITIAL_VALUE to {}ms", newvalue);
-            return Integer.parseInt(newvalue);
-        }
+
+        if (newValue != Gossiper.intervalInMillis * 2)

Review Comment:
   The default value is `Gossiper.intervalInMillis * 2`, so if the 
`FD_INITIAL_VALUE_MS` is set to the default, we don't want to log it, do we? 
   
   This was the previous implementation:
   ```
       private static long getMaxLocalPause()
       {
           if (System.getProperty("cassandra.max_local_pause_in_ms") != null)
           {
               long pause = 
Long.parseLong(System.getProperty("cassandra.max_local_pause_in_ms"));
               logger.warn("Overriding max local pause time to {}ms", pause);
               return pause * 1000000L;
           }
           else
               return DEFAULT_MAX_PAUSE;
       }
   ```



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