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 f249384daf5e78039ae87c9bc4d117a23ed65234
Author: Sam Tunnicliffe <[email protected]>
AuthorDate: Fri Aug 18 11:18:21 2023 +0100

    [CEP-21] Handle gossip removal vs eviction during replacement, dependent on 
version
---
 replace_address_test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/replace_address_test.py b/replace_address_test.py
index 79165953..83e2d82c 100644
--- a/replace_address_test.py
+++ b/replace_address_test.py
@@ -173,7 +173,8 @@ class BaseReplaceAddressTest(Tester):
                 node.watch_log_for("Node {} will complete replacement of {} 
for tokens"
                                    
.format(self.replacement_node.address_for_current_version_slashy(),
                                            
self.replaced_node.address_for_current_version_slashy()), timeout=10)
-                node.watch_log_for("removing endpoint 
{}".format(self.replaced_node.address_for_current_version_slashy()),
+                gossip_action = "removing endpoint" if 
self.cluster.cassandra_version() < '5.1' else "evicting"
+                node.watch_log_for("{} {}".format(gossip_action, 
self.replaced_node.address_for_current_version_slashy()),
                                    timeout=60, filename='debug.log')
             else:
                 node.watch_log_for("between /{} and /{}; /{} is the new owner"


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

Reply via email to