maedhroz commented on code in PR #2961:
URL: https://github.com/apache/cassandra/pull/2961#discussion_r1420990278
##########
src/java/org/apache/cassandra/index/sai/plan/QueryController.java:
##########
@@ -210,6 +216,24 @@ public KeyRangeIterator.Builder
getIndexQueryResults(Collection<Expression> expr
return builder;
}
+ private void maybeTriggerGuardrails(QueryViewBuilder.QueryView queryView)
+ {
+ if (!cfs.isLeveledCompaction())
+ return;
+
+ int referencedIndexes = queryView.referencedIndexes.size();
+
+ if
(Guardrails.maximumReferencedIndexesWithNonParitionRestrictedQuery.failsOn(referencedIndexes,
null))
Review Comment:
We should follow the pattern of `LocalReadSizeTooLargeException` and trace
here, using a common error message for the exception, etc.
--
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]