From 3d90e78021d1a5e7bb0fb3865be2475b83042ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20de=20la=20Pe=C3=B1a?= Date: Tue, 19 May 2026 12:50:09 +0100 Subject: [PATCH] CNDB-17291: Fix SlowSAIQueryLoggerTest Enable term stats in this dtest, same as in utests extending SAITester. This was broken by CNDB-17275. --- .../cassandra/distributed/test/sai/SlowSAIQueryLoggerTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/distributed/org/apache/cassandra/distributed/test/sai/SlowSAIQueryLoggerTest.java b/test/distributed/org/apache/cassandra/distributed/test/sai/SlowSAIQueryLoggerTest.java index 646eb246d004..94ee076aee62 100644 --- a/test/distributed/org/apache/cassandra/distributed/test/sai/SlowSAIQueryLoggerTest.java +++ b/test/distributed/org/apache/cassandra/distributed/test/sai/SlowSAIQueryLoggerTest.java @@ -61,6 +61,9 @@ public void testSlowSAIQueryLogger() throws Throwable // effectively disable the scheduled monitoring task so we control it manually for better test stability CassandraRelevantProperties.MONITORING_REPORT_INTERVAL_MS.setInt((int) TimeUnit.HOURS.toMillis(1)); + // enable term statistics, same as in SAITester + CassandraRelevantProperties.SAI_QUERY_OPTIMIZATION_USE_TERM_STATISTICS.setBoolean(true); + try (Cluster cluster = init(Cluster.build(1) .withConfig(c -> c.set("slow_query_log_timeout_in_ms", SLOW_QUERY_LOG_TIMEOUT_IN_MS)) .withInstanceInitializer(BB::install)