You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2021/03/04 19:59:49 UTC

[cassandra-dtest] branch trunk updated (2b74401 -> 893310c)

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

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


    from 2b74401  Fix selections of JDKs in debian docker images on arm64
     new c439ff0  add simple removenode test
     new 893310c  fix snitch_test.py::TestGossipingPropertyFileSnitch::test_prefer_local_reconnect_on_listen_address

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 snitch_test.py   | 14 ++++++++++++++
 topology_test.py | 15 +++++++++++++++
 2 files changed, 29 insertions(+)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


[cassandra-dtest] 02/02: fix snitch_test.py::TestGossipingPropertyFileSnitch::test_prefer_local_reconnect_on_listen_address

Posted by br...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 893310caf3f775e89d10c03cb674a4c9bb29990f
Author: Mick Semb Wever <mc...@apache.org>
AuthorDate: Sat Feb 27 11:07:15 2021 +0100

    fix snitch_test.py::TestGossipingPropertyFileSnitch::test_prefer_local_reconnect_on_listen_address
    
    Patch by mck; reviewed by brandonwilliams for CASSANDRA-16381
---
 snitch_test.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/snitch_test.py b/snitch_test.py
index c6d5028..5b640c8 100644
--- a/snitch_test.py
+++ b/snitch_test.py
@@ -129,10 +129,24 @@ class TestGossipingPropertyFileSnitch(Tester):
         assert "/{}".format(NODE1_BROADCAST_ADDRESS) in out
         assert "INTERNAL_IP:{}:{}".format('9' if running40 else '6', NODE1_LISTEN_ADDRESS) in out
         assert "/{}".format(NODE2_BROADCAST_ADDRESS) in out
+        if running40:
+            assert "INTERNAL_ADDRESS_AND_PORT:7:{}".format(NODE1_40_LISTEN_ADDRESS) in out
+            assert "INTERNAL_ADDRESS_AND_PORT:7:{}".format(NODE2_40_LISTEN_ADDRESS) in out
+        else:
+            assert "INTERNAL_IP:{}:{}".format('6', NODE2_LISTEN_ADDRESS) in out
+
+        out, err, _ = node2.nodetool('gossipinfo')
+        assert_stderr_clean(err)
+        logger.debug(out)
+
+        assert "/{}".format(NODE1_BROADCAST_ADDRESS) in out
         assert "INTERNAL_IP:{}:{}".format('9' if running40 else '6', NODE2_LISTEN_ADDRESS) in out
+        assert "/{}".format(NODE2_BROADCAST_ADDRESS) in out
         if running40:
             assert "INTERNAL_ADDRESS_AND_PORT:7:{}".format(NODE1_40_LISTEN_ADDRESS) in out
             assert "INTERNAL_ADDRESS_AND_PORT:7:{}".format(NODE2_40_LISTEN_ADDRESS) in out
+        else:
+            assert "INTERNAL_IP:{}:{}".format('6', NODE1_LISTEN_ADDRESS) in out
 
 class TestDynamicEndpointSnitch(Tester):
     @pytest.mark.resource_intensive


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


[cassandra-dtest] 01/02: add simple removenode test

Posted by br...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit c439ff0ea34d37b1c799e7e54e48102caee7805e
Author: Brandon Williams <br...@apache.org>
AuthorDate: Mon Feb 1 17:47:54 2021 -0600

    add simple removenode test
    
    Patch by brandonwilliams; reviwed by mck for CASSANDRA-16381
---
 topology_test.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/topology_test.py b/topology_test.py
index 6da9b7c..10b73c9 100644
--- a/topology_test.py
+++ b/topology_test.py
@@ -127,6 +127,21 @@ class TestTopology(Tester):
         assert_none(session, "SELECT range_start, range_end FROM system.size_estimates "
                              "WHERE keyspace_name = 'ks2'")
 
+    def test_simple_removenode(self):
+        """ test removenode """
+        cluster = self.cluster
+        cluster.populate(3)
+        cluster.start(jvm_args=["-Dcassandra.size_recorder_interval=1"])
+        node1, node2, node3 = cluster.nodelist()
+
+        node1.stress(['write', 'n=10K', 'no-warmup', '-rate', 'threads=8', '-schema', 'replication(factor=2)'])
+
+        node3_id = node3.nodetool('info').stdout[25:61]
+        node3.stop(wait_other_notice=True)
+        node1.nodetool('removenode ' + node3_id)
+
+        node1.stress(['read', 'n=10K', 'no-warmup', '-rate', 'threads=8'])
+
     def test_simple_decommission(self):
         """
         @jira_ticket CASSANDRA-9912


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org