This is an automated email from the ASF dual-hosted git repository.

samt pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git

commit 05f4340d78c530b2032d88de4d2cd58a7e7ea7f2
Author: Marcus Eriksson <[email protected]>
AuthorDate: Fri May 12 10:54:07 2023 +0200

    [CEP-21] PaxosUncommittedIndex now gets added to the IndexInfo table
---
 secondary_indexes_test.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/secondary_indexes_test.py b/secondary_indexes_test.py
index c5d5c792..97f40483 100644
--- a/secondary_indexes_test.py
+++ b/secondary_indexes_test.py
@@ -3,6 +3,8 @@ import random
 import re
 import time
 import uuid
+from distutils.version import LooseVersion
+
 import pytest
 import logging
 
@@ -327,9 +329,12 @@ class TestSecondaryIndexes(Tester):
         after_files = self._index_sstables_files(node1, 'keyspace1', 
'standard1', 'ix_c0')
         assert before_files != after_files
         assert 1 == len(list(session.execute(stmt, [lookup_value])))
+        expected = 1
+        if self.cluster.version() >= LooseVersion('5.1'):
+            expected = 2 # in tcm PaxosUncommittedIndex is is IndexInfo table
 
         # verify that only the expected row is present in the build indexes 
table
-        assert 1 == len(list(session.execute("""SELECT * FROM 
system."IndexInfo";""")))
+        assert expected == len(list(session.execute("""SELECT * FROM 
system."IndexInfo";""")))
 
     @since('4.0')
     def test_failing_manual_rebuild_index(self):


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to