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 <dario.mirovic@scylladb.com>

Refs SCYLLADB-1645

(cherry picked from commit 3debae9a37)
This commit is contained in:
Marcin Maliszkiewicz
2026-05-13 15:56:14 +02:00
committed by scylladbbot
parent 51e187b6e2
commit c6fca009d1

View File

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