cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r945463 - /cassandra/branches/cassandra-0.6/contrib/py_stress/stress.py
Date Tue, 18 May 2010 02:23:20 GMT
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",



Mime
View raw message