You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jz...@apache.org on 2018/12/07 03:01:35 UTC
cassandra-dtest git commit: Add basic test for cassandra-stress
Repository: cassandra-dtest
Updated Branches:
refs/heads/master c0d9c9744 -> 325ef3fa0
Add basic test for cassandra-stress
patch by Jay Zhuang; reviewed by Stefania Alborghetti for CASSANDRA-14616
Project: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/commit/325ef3fa
Tree: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/tree/325ef3fa
Diff: http://git-wip-us.apache.org/repos/asf/cassandra-dtest/diff/325ef3fa
Branch: refs/heads/master
Commit: 325ef3fa063252e6dad88473613abbd829e8c24d
Parents: c0d9c97
Author: Jay Zhuang <ja...@yahoo.com>
Authored: Wed Nov 14 14:25:14 2018 -0800
Committer: Jay Zhuang <ja...@yahoo.com>
Committed: Thu Dec 6 19:01:20 2018 -0800
----------------------------------------------------------------------
stress_tool_test.py | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra-dtest/blob/325ef3fa/stress_tool_test.py
----------------------------------------------------------------------
diff --git a/stress_tool_test.py b/stress_tool_test.py
index 9a1ccd2..7d15c4d 100644
--- a/stress_tool_test.py
+++ b/stress_tool_test.py
@@ -54,3 +54,19 @@ class TestStressSparsenessRatio(Tester):
num_results = sum(len(row) for row in written)
assert abs(float(num_nones) / num_results - expected_ratio) <= delta
+
+
+@since('3.0')
+class TestStressWrite(Tester):
+
+ @pytest.mark.timeout(3 * 60)
+ def test_quick_write(self):
+ """
+ @jira_ticket CASSANDRA-14890
+ A simple write stress test should be done very quickly
+ """
+ self.cluster.populate(1).start(wait_for_binary_proto=True)
+ node = self.cluster.nodelist()[0]
+ node.stress(['write', 'err<0.9', 'n>1', '-rate', 'threads=1'])
+ out, err, _ = node.run_cqlsh('describe table keyspace1.standard1')
+ assert 'standard1' in out
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org