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 c0082c9d0b2ded7da93942dfbfc7c87c896d53e0
Author: Marcus Eriksson <[email protected]>
AuthorDate: Mon Nov 20 11:01:47 2023 +0100

    [CEP-21] Add version guard around call to initializecms
---
 upgrade_tests/upgrade_through_versions_test.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/upgrade_tests/upgrade_through_versions_test.py 
b/upgrade_tests/upgrade_through_versions_test.py
index a9aa0bc7..539cf9e7 100644
--- a/upgrade_tests/upgrade_through_versions_test.py
+++ b/upgrade_tests/upgrade_through_versions_test.py
@@ -496,8 +496,10 @@ class TestUpgrade(Tester):
                 self._check_values()
                 self._check_counters()
                 self._check_select_count()
-        self.cluster.nodelist()[0].nodetool("initializecms")
-            # run custom post-upgrade callables
+
+        if self.cluster.version() >= '5.1':
+            self.cluster.nodelist()[0].nodetool("initializecms")
+        # run custom post-upgrade callables
         for call in after_upgrade_call:
             call()
 
@@ -994,4 +996,4 @@ for pair in build_upgrade_pairs():
         [pair.starting_meta, pair.upgrade_meta],
         protocol_version=pair.starting_meta.max_proto_v,
         bootstrap_test=True
-    )
\ No newline at end of file
+    )


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

Reply via email to