You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2021/09/24 17:06:47 UTC

[GitHub] [cassandra] josh-mckenzie commented on a change in pull request #1213: Add a Denylist to block reads and writes on specific partition keys

josh-mckenzie commented on a change in pull request #1213:
URL: https://github.com/apache/cassandra/pull/1213#discussion_r715775282



##########
File path: src/java/org/apache/cassandra/config/DatabaseDescriptor.java
##########
@@ -3447,6 +3447,86 @@ public static void setConsecutiveMessageErrorsThreshold(int value)
         conf.consecutive_message_errors_threshold = value;
     }
 
+    public static boolean enablePartitionDenylist()
+    {
+        return conf.enable_partition_denylist;
+    }
+
+    public static void setEnablePartitionDenylist(boolean enabled)
+    {
+        conf.enable_partition_denylist = enabled;
+    }
+
+    public static boolean enableDenylistWrites()
+    {
+        return conf.enable_denylist_writes;
+    }
+
+    public static void setEnableDenylistWrites(boolean enabled)
+    {
+        conf.enable_denylist_writes = enabled;
+    }
+
+    public static boolean enableDenylistReads()
+    {
+        return conf.enable_denylist_reads;
+    }
+
+    public static void setEnableDenylistReads(boolean enabled)
+    {
+        conf.enable_denylist_reads = enabled;
+    }
+
+    public static boolean enableDenylistRangeReads()
+    {
+        return conf.enable_denylist_range_reads;
+    }
+
+    public static void setEnableDenylistRangeReads(boolean enabled)
+    {
+        conf.enable_denylist_range_reads = enabled;
+    }
+
+    public static int getDenylistRefreshPeriodSeconds()
+    {
+        return conf.denylist_refresh_period_seconds;
+    }
+
+    public static void setdenyDenylistRefreshPeriodSeconds(int period)
+    {
+        conf.denylist_refresh_period_seconds = period;
+    }
+
+    public static int getDenylistInitialLoadRetrySeconds()
+    {
+        return conf.denylist_initial_load_retry_seconds;
+    }
+
+    public static void setdenyDenylistInitialLoadRetrySeconds(int seconds)
+    {
+        conf.denylist_initial_load_retry_seconds = seconds;
+    }
+
+    public static int maxdenyDenylistKeysPerTable()
+    {
+        return conf.max_denylist_keys_per_table;
+    }
+
+    public static int maxdenyDenylistKeysTotal()
+    {
+        return conf.max_denylist_keys_total;
+    }
+
+    public static ConsistencyLevel denylistConsistencyLevel()

Review comment:
       Yeah, this was just sloppiness on the quick port on my part. Tidying up; will push commit w/all this in a few.




-- 
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: pr-unsubscribe@cassandra.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org