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 2020/10/22 13:28:46 UTC
[cassandra-dtest] branch master updated: Set max window correctly.
This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git
The following commit(s) were added to refs/heads/master by this push:
new d61eff9 Set max window correctly.
d61eff9 is described below
commit d61eff9b89a2f4bbe1791e1cd71a5e3456d6cc94
Author: Bereng <be...@gmail.com>
AuthorDate: Thu Oct 15 09:53:40 2020 +0200
Set max window correctly.
Patch by Berenguer Blasi, reviwewed by brandonwilliams for
ASSANDRA-15865
---
hintedhandoff_test.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/hintedhandoff_test.py b/hintedhandoff_test.py
index 0d2d6e8..485edcc 100644
--- a/hintedhandoff_test.py
+++ b/hintedhandoff_test.py
@@ -141,9 +141,11 @@ class TestHintedHandoffConfig(Tester):
assert 'Current max hint window: 300000 ms' == res.rstrip()
self._do_hinted_handoff(node1, node2, True)
node1.start()
- self._launch_nodetool_cmd(node, 'setmaxhintwindow 1')
- res = self._launch_nodetool_cmd(node, 'getmaxhintwindow')
- assert 'Current max hint window: 1 ms' == res.rstrip()
+ for node in node1, node2:
+ # Make sure HH is effective on both nodes despite node startup races CASSANDRA-15865
+ self._launch_nodetool_cmd(node, 'setmaxhintwindow 1')
+ res = self._launch_nodetool_cmd(node, 'getmaxhintwindow')
+ assert 'Current max hint window: 1 ms' == res.rstrip()
self._do_hinted_handoff(node1, node2, False, keyspace='ks2')
def test_hintedhandoff_dc_disabled(self):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org