From 646a8557d8f5ddf3e3e0fdd9acb0c2b23d93075c Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Tue, 19 Apr 2011 20:25:42 +0000 Subject: [PATCH] update stress.py for KsDef replication_factor change patch by Robert Jackson; reviewed by jbellis for CASSANDRA-2509 git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.8@1095192 13f79535-47bb-0310-9956-ffa450edef68 --- tools/py_stress/stress.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/py_stress/stress.py b/tools/py_stress/stress.py index 7d89fbff4fe4..319fda336d36 100644 --- a/tools/py_stress/stress.py +++ b/tools/py_stress/stress.py @@ -185,7 +185,10 @@ def make_keyspaces(): colms = [ColumnDef(name='C1', validation_class='UTF8Type', index_type=IndexType.KEYS_BITMAP)] cfams = [CfDef(keyspace='Keyspace1', name='Standard1', column_metadata=colms), CfDef(keyspace='Keyspace1', name='Super1', column_type='Super')] - keyspace = KsDef(name='Keyspace1', strategy_class='org.apache.cassandra.locator.SimpleStrategy', replication_factor=options.replication, cf_defs=cfams) + keyspace = KsDef(name='Keyspace1', + strategy_class='org.apache.cassandra.locator.SimpleStrategy', + strategy_options={'replication_factor': str(options.replication)}, + cf_defs=cfams) client = get_client(nodes[0], options.port) client.transport.open() try: