aratno commented on code in PR #3706:
URL: https://github.com/apache/cassandra/pull/3706#discussion_r1901094870
##########
src/java/org/apache/cassandra/config/DatabaseDescriptor.java:
##########
@@ -5349,4 +5349,28 @@ public static boolean
isPasswordValidatorReconfigurationEnabled()
{
return conf.password_validator_reconfiguration_enabled;
}
+
+ public static long getInvalidClientDisconnectPeriod(TimeUnit unit)
+ {
+ return conf.invalid_client_disconnect_period.to(unit);
+ }
+
+ public static void setInvalidClientDisconnectPeriod(TimeUnit unit, long
duration)
+ {
+ long prevDuration = conf.invalid_client_disconnect_period.to(unit);
+ logger.info("invalid_client_disconnect_period set from {} to {}",
prevDuration, duration == 0 ? "disabled" : String.format("%s %s", duration,
unit));
Review Comment:
This would render as "disabled (MILLISECONDS)" though. This is going to log
super infrequently, so clarity feels more important than performance.
--
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]