You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "AhmedReda85 (via GitHub)" <gi...@apache.org> on 2026/09/11 19:02:33 UTC

[PR] CASSANDRA-21623 Report the number of rows replica filtering protection cached when it warns [cassandra]

AhmedReda85 opened a new pull request, #5162:
URL: https://github.com/apache/cassandra/pull/5162

   ### Description
   Previously, `ReplicaFilteringProtection` emitted a warning immediately upon crossing `cachedRowsWarnThreshold + 1`, reporting the threshold value rather than the actual maximum number of rows cached during the query.
   
   This patch:
   - Defers warning evaluation to `QueryMergeListener.close()` so the peak cached count (`maxRowsCached`) across the entire query is reported.
   - Updates the warning message to:
     `"Replica filtering protection has cached up to %d rows during query %s, which is over the warning threshold of %d rows defined by 'cached_replica_rows_warn_threshold' in cassandra.yaml."`
   - Suppresses the warning if the query already failed due to hitting `cachedRowsFailThreshold` (`hitFailureThreshold = true`).
   - Updates failure message to clearly report `currentRowsCached` and `cachedRowsFailThreshold`.
   - Adds entry to `CHANGES.txt` under `7.0`.
   
   ### Jira
   * [CASSANDRA-21623](https://issues.apache.org/jira/browse/CASSANDRA-21623)
   
   ### Testing
   - Updated `ReplicaFilteringProtectionTest` using AssertJ fluent assertions to verify the exact warning and failure messages.
   - Ran targeted distributed test:
     `ant test-jvm-dtest-some -Dtest.name=org.apache.cassandra.distributed.test.ReplicaFilteringProtectionTest` (BUILD SUCCESSFUL).
   - Passed `git diff --check` with zero whitespace errors.
   


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


Re: [PR] CASSANDRA-21623 Report the number of rows replica filtering protection cached when it warns [cassandra]

Posted by "smiklosovic (via GitHub)" <gi...@apache.org>.
smiklosovic closed pull request #5162: CASSANDRA-21623 Report the number of rows replica filtering protection cached when it warns
URL: https://github.com/apache/cassandra/pull/5162


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