maedhroz commented on code in PR #2961:
URL: https://github.com/apache/cassandra/pull/2961#discussion_r1434505710
##########
src/java/org/apache/cassandra/config/GuardrailsOptions.java:
##########
@@ -900,6 +904,48 @@ public void setMinimumTimestampThreshold(@Nullable
DurationSpec.LongMicroseconds
x -> config.minimum_timestamp_fail_threshold
= x);
}
+ @Override
+ public int getSaiSSTableIndexesPerQueryWarnThreshold()
+ {
+ return config.sai_sstable_indexes_per_query_warn_threshold;
+ }
+
+ @Override
+ public int getSaiSSTableIndexesPerQueryFailThreshold()
+ {
+ return config.sai_sstable_indexes_per_query_fail_threshold;
+ }
+
+ @Override
+ public void setSaiSSTableIndexesPerQueryThreshold(int warn, int fail)
+ {
+ validateMaxIntThreshold(warn, fail, "sai_sstable_indexes_per_query");
+
updatePropertyWithLogging("sai_sstable_indexes_per_query_warn_threshold",
+ warn,
+ () ->
config.sai_sstable_indexes_per_query_warn_threshold,
+ x ->
config.sai_sstable_indexes_per_query_warn_threshold = x);
+
+
updatePropertyWithLogging("sai_sstable_indexes_per_query_fail_threshold",
+ fail,
+ () ->
config.sai_sstable_indexes_per_query_fail_threshold,
+ x ->
config.sai_sstable_indexes_per_query_fail_threshold = x);
+ }
+
+ @Override
+ public boolean getNonPartitionRestrictedQueryEnabled()
+ {
+ return config.non_partition_restricted_index_query_enabled;
+ }
+
+ @Override
+ public void setNonPartitionRestrictedQueryEnabled(boolean enabled)
Review Comment:
```suggestion
public void setNonPartitionRestrictedIndexQueryEnabled(boolean enabled)
```
--
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]