[
https://issues.apache.org/jira/browse/QPID-7076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15150017#comment-15150017
]
ylg edited comment on QPID-7076 at 2/17/16 10:41 AM:
-----------------------------------------------------
qpid-cpp-benchmark-nonetype-exception.patch
--- a/src/tests/qpid-cpp-benchmark 2016-02-17 18:38:14.612488114 +0800
+++ b/src/tests/qpid-cpp-benchmark 2016-02-17 15:03:18.398219125 +0800
@@ -349,7 +349,8 @@
ready_receiver.wait(filter(None, receivers)) # Wait for
receivers ready
start = time.time()
senders = start_senders()
- for p in senders + receivers: if p : p.wait()
+ for p in senders + receivers:
+ if p : p.wait()
total_sent = opts.queues * opts.senders * opts.messages
total_tp = total_sent / (time.time()-start)
was (Author: yalogr):
qpid-cpp-benchmark-nonetype-exception.patch
352c352,353
< for p in senders + receivers: if p : p.wait()
---
> for p in senders + receivers:
> if p : p.wait()
> qpid-cpp-benchmark throw exception when the number of senders or receivers is
> zero
> ----------------------------------------------------------------------------------
>
> Key: QPID-7076
> URL: https://issues.apache.org/jira/browse/QPID-7076
> Project: Qpid
> Issue Type: Test
> Components: Python Test Suite
> Affects Versions: qpid-cpp-0.34
> Reporter: ylg
> Priority: Critical
>
> ./qpid-cpp-benchmark -b vm92 -r 10 -s 0 -q 1 --summarize
> send-tp recv-tp l-min l-max l-avg total-tp
> Traceback (most recent call last):
> File "./qpid-cpp-benchmark", line 362, in <module>
> if __name__ == "__main__": main()
> File "./qpid-cpp-benchmark", line 352, in main
> for p in senders + receivers: p.wait()
> AttributeError: 'NoneType' object has no attribute 'wait'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]