> On Jan. 3, 2014, 12:22 a.m., Andrew Stitcher wrote: > > /trunk/qpid/cpp/src/tests/ha_tests.py, line 237 > > <https://reviews.apache.org/r/16577/diff/1/?file=413695#file413695line237> > > > > This doesn't appear to be an HA test why is it in these tests? > > Alan Conway wrote: > Agreed, should be in the qpid/python tests somewhere. I'll look for an > appropriate place.
The trick here is that the failover part of the test requires starting and killing a second broker, which is beyond the capabilities of the qpid/python tests. Options I can see: - leave it where it is since it tests failover which is HA-related - create a new cpp/src/tests/python_client_test.py test suite (using brokertest.py) with this test to start, can collect further python client tests there that need to start/stop brokers but don't require the use of the HA plugin. I will do the latter if you think it is worthwhile. - Alan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16577/#review31093 ----------------------------------------------------------- On Jan. 2, 2014, 10:15 p.m., Alan Conway wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/16577/ > ----------------------------------------------------------- > > (Updated Jan. 2, 2014, 10:15 p.m.) > > > Review request for qpid, Gordon Sim and Rafael Schloming. > > > Bugs: qpid-5428 > https://issues.apache.org/jira/browse/qpid-5428 > > > Repository: qpid > > > Description > ------- > > QPID-5428: Heartbeats not in use when attempting to connect with python > client. > > The heartbeat setting was ignored when opening a connection, so opening a > connection could hang indefinitely unless a timeout was set. > > The fix is to set the timeout to 2x heartbeat if a heartbeat interval is set. > > > Diffs > ----- > > /trunk/qpid/cpp/src/tests/ha_tests.py 1554805 > /trunk/qpid/python/qpid/messaging/endpoints.py 1554805 > > Diff: https://reviews.apache.org/r/16577/diff/ > > > Testing > ------- > > > Thanks, > > Alan Conway > >
