Bug 599700 - Console examples sometimes fail due to not waiting for the broker connection to complete
Summary: Console examples sometimes fail due to not waiting for the broker connection ...
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-qmf   
(Show other bugs)
Version: Development
Hardware: All
OS: Linux
Target Milestone: 1.3
: ---
Assignee: Ted Ross
QA Contact: MRG Quality Engineering
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-03 19:05 UTC by Ted Ross
Modified: 2011-08-12 16:04 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-10-13 13:26:34 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Ted Ross 2010-06-03 19:05:37 UTC
Description of problem:

The 'ping' and 'console' examples in cpp/examples/qmf-console intermittently fail because they try to start operating against a broker that is not yet connected. 

Version-Release number of selected component (if applicable):

How reproducible:

very - the Ping example fails for me 100% of the time (i.e. the first ping doesn't go out)

Steps to Reproduce:
1. start a broker
2. run the "ping" example from cpp/examples/qmf-console
Actual results:

One of five pings are unsuccessful

Expected results:

All pings successful

Additional info:

This can also be seen using the 'console' example.  In this case, the example may not return any data.

Comment 1 Ted Ross 2010-06-03 20:26:22 UTC
Fixed upstream in revision 951141.

Note that a new method was exposed as public:  Broker::waitForStable()

This can be used after calling addBroker() to ensure that it is connected and stable prior to invoking getObjects, etc. on the session.

Note You need to log in before you can comment on or make changes to this bug.