smiklosovic commented on code in PR #4547:
URL: https://github.com/apache/cassandra/pull/4547#discussion_r2687674996
##########
src/java/org/apache/cassandra/db/guardrails/Guardrails.java:
##########
@@ -556,6 +556,19 @@ public final class Guardrails implements GuardrailsMBean
(isWarning, value) ->
isWarning ? "Replica disk usage exceeds warning threshold"
: "Write request failed because disk usage
exceeds failure threshold");
+ /**
+ * Guardrail on the data disk usage of replicas across a datacenter, used
at write time to verify the status of
+ * any node which might replicate a given keyspace
+ */
+ public static final Predicates<InetAddressAndPort> keyspaceDiskUsage =
+ new Predicates<>("keyspace_disk_usage",
+ null,
+ state ->
DiskUsageBroadcaster.instance::isDataCenterStuffed,
+ state -> DiskUsageBroadcaster.instance::isDataCenterFull,
+ (isWarning, value) ->
+ isWarning ? "Disk usage in datacenter exceeds warning
threshold"
Review Comment:
could you align this?
--
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]