[ 
https://issues.apache.org/jira/browse/CASSANDRA-20892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Miklosovic updated CASSANDRA-20892:
------------------------------------------
    Change Category: Operability
         Complexity: Low Hanging Fruit
          Reviewers: Stefan Miklosovic
             Status: Open  (was: Triage Needed)

> Don't allow JMX operations for denylist when denylist is disabled
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-20892
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20892
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Observability/JMX
>            Reporter: Ling Mao
>            Assignee: Ling Mao
>            Priority: Normal
>             Fix For: 4.1.x, 5.0.x, 5.x
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> While following the documentation ([2]), I executed the following commands
> {code:java}
> bean org.apache.cassandra.db:type=StorageProxy
> run denylistKey foo buz 3
> true
> run loadPartitionDenylist
> run isKeyDenylisted foo buz 3
> false
> {code}
> but encountered some confusing behavior:
> 1. The function _*isKeyDenylisted*_ always returned false, which was 
> unexpected.
> 2. However, I observed from the logs that *_loadPartitionDenylist_* executed 
> successfully:
> {code:java}
> Loaded partition denylist cache in 24ms{code}
> 3. Additionally, running the query {*}_SELECT * FROM foo.buz WHERE key=3_{*}; 
> did not throw an exception as anticipated.
> After further investigation, I discovered that the feature needs to be 
> explicitly enabled by setting *_partition_denylist_enabled: true_* in the 
> _*cassandra.yaml*_ file. Unfortunately, this requirement is not mentioned in 
> the documentation ([1], [2]).
> Reference:
> [1] 
> [https://cassandra.apache.org/doc/latest/cassandra/managing/operating/denylisting_partitions.html]
> [2] 
> [https://cassandra.apache.org/_/blog/Apache-Cassandra-4.1-Denylisting-Partitions.html]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to