You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2010/05/18 04:23:20 UTC
svn commit: r945463 -
/cassandra/branches/cassandra-0.6/contrib/py_stress/stress.py
Author: jbellis
Date: Tue May 18 02:23:19 2010
New Revision: 945463
URL: http://svn.apache.org/viewvc?rev=945463&view=rev
Log:
add warning to stress.py when fastbinary is missing. patch by Brandon Williams; reviewed by jbellis for CASSANDRA-1089
Modified:
cassandra/branches/cassandra-0.6/contrib/py_stress/stress.py
Modified: cassandra/branches/cassandra-0.6/contrib/py_stress/stress.py
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.6/contrib/py_stress/stress.py?rev=945463&r1=945462&r2=945463&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.6/contrib/py_stress/stress.py (original)
+++ cassandra/branches/cassandra-0.6/contrib/py_stress/stress.py Tue May 18 02:23:19 2010
@@ -53,6 +53,10 @@ except ImportError:
print "Cassandra thrift bindings not found, please run 'ant gen-thrift-py'"
sys.exit(2)
+try:
+ from thrift.protocol import fastbinary
+except ImportError:
+ print "WARNING: thrift binary extension not found, benchmark will not be accurate!"
parser = OptionParser()
parser.add_option('-n', '--num-keys', type="int", dest="numkeys",