From c6fca009d1f3f08e3b058c641ecb8ef71e76b5d8 Mon Sep 17 00:00:00 2001 From: Marcin Maliszkiewicz Date: Wed, 13 May 2026 15:56:14 +0200 Subject: [PATCH] test: limits: skip empty max cells iterations The doubling loop in test_max_cells started from cells=1. Since each row has MAX_CELLS_COLUMNS (32768) cells, iterations where cells < MAX_CELLS_COLUMNS produced zero rows (cells // columns = 0). Those iterations only did CREATE TABLE / DROP TABLE with no data inserted. Start the loop from MAX_CELLS_COLUMNS and use a while loop. Co-authored-by: Dario Mirovic Refs SCYLLADB-1645 (cherry picked from commit 3debae9a3729f2448b7a3916ed135fb367f4052f) --- test/cluster/dtest/limits_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cluster/dtest/limits_test.py b/test/cluster/dtest/limits_test.py index f3cd3fc81a..f525432124 100644 --- a/test/cluster/dtest/limits_test.py +++ b/test/cluster/dtest/limits_test.py @@ -282,7 +282,7 @@ class TestLimits(Tester): session = self.patient_cql_connection(node) create_ks(session, "ks", 1) - cells = 1 - for i in range(int(math.log(MAX_CELLS, 2))): - cells <<= 1 + cells = MAX_CELLS_COLUMNS + while cells <= MAX_CELLS: self._do_test_max_cell_count(session, cells - 1) + cells <<= 1