benchmark: add minor logs in 'get', 'put' requests

This commit is contained in:
Simon Désaulniers authored and Simon Désaulniers committed 2016-04-09 00:42:22 -04:00
1 parent 53bea202a2
commit 30ba6baf39
1 file changed
+2 -4
+2 -4
View File
@@ -211,7 +211,7 @@ class DhtFeatureTest(FeatureTest):
for val in values:
with FeatureTest.lock:
vstr = val.__str__()[:100]
DhtNetwork.log('[PUT]: %s' % vstr + ("..." if len(vstr) > 100 else ""))
DhtNetwork.log('[PUT]:', _hash.toString(), '->', vstr + ("..." if len(vstr) > 100 else ""))
FeatureTest.done += 1
while FeatureTest.done > 0:
producer.put(_hash, val, DhtFeatureTest.putDoneCb)
@@ -223,6 +223,7 @@ class DhtFeatureTest(FeatureTest):
with FeatureTest.lock:
FeatureTest.done += 1
while FeatureTest.done > 0:
DhtNetwork.log('[GET]:', _hash.toString())
consumer.get(_hash, DhtFeatureTest.getcb, DhtFeatureTest.getDoneCb)
FeatureTest.lock.wait()
@@ -454,9 +455,6 @@ class PersistenceTest(DhtFeatureTest):
for node in DhtFeatureTest.foreignNodes:
DhtNetwork.log(node)
#DhtNetwork.log("Waiting a minute for the network to settle down.")
#time.sleep(60)
for _ in range(max(1, int(self._workbench.node_num/32))):
DhtNetwork.log('Removing all nodes hosting target values...')
cluster_ops_count = 0