You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Alan Conway <ac...@redhat.com> on 2012/04/18 16:43:03 UTC

Review Request: QPID-3352: Fix test for failed session to avoid confusion with as yet uninitialised session

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4788/
-----------------------------------------------------------

Review request for qpid, Gordon Sim and Kenneth Giusti.


Summary
-------

    Previously, Link was using sessionHandler::isReady() to determine if a
    bridge had failed and needed recovery.  However this incorrectcly
    recovers bridges that are not yet initialized as well as those that
    have failed.
    
    This was causing sporadic core dumps in serveral of the ha_tests.py
    tests, in particular test_backup_acquired.
    
    This patch adds a callback to notify the bridge when the session is
    detached, and use this as the criteria for recovering a bridge.


Diffs
-----

  /trunk/qpid/cpp/src/qpid/broker/Bridge.h 1327518 
  /trunk/qpid/cpp/src/qpid/broker/Bridge.cpp 1327518 
  /trunk/qpid/cpp/src/qpid/broker/Link.cpp 1327518 
  /trunk/qpid/cpp/src/qpid/broker/SessionHandler.h 1327518 
  /trunk/qpid/cpp/src/qpid/broker/SessionHandler.cpp 1327518 
  /trunk/qpid/cpp/src/tests/run_federation_tests 1327518 

Diff: https://reviews.apache.org/r/4788/diff


Testing
-------

make check, repeated runs of relevant HA and federation tests.


Thanks,

Alan


Re: Review Request: QPID-3352: Fix test for failed session to avoid confusion with as yet uninitialised session

Posted by Gordon Sim <gs...@redhat.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4788/#review7004
-----------------------------------------------------------

Ship it!


- Gordon


On 2012-04-18 14:43:03, Alan Conway wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/4788/
> -----------------------------------------------------------
> 
> (Updated 2012-04-18 14:43:03)
> 
> 
> Review request for qpid, Gordon Sim and Kenneth Giusti.
> 
> 
> Summary
> -------
> 
>     Previously, Link was using sessionHandler::isReady() to determine if a
>     bridge had failed and needed recovery.  However this incorrectcly
>     recovers bridges that are not yet initialized as well as those that
>     have failed.
>     
>     This was causing sporadic core dumps in serveral of the ha_tests.py
>     tests, in particular test_backup_acquired.
>     
>     This patch adds a callback to notify the bridge when the session is
>     detached, and use this as the criteria for recovering a bridge.
> 
> 
> Diffs
> -----
> 
>   /trunk/qpid/cpp/src/qpid/broker/Bridge.h 1327518 
>   /trunk/qpid/cpp/src/qpid/broker/Bridge.cpp 1327518 
>   /trunk/qpid/cpp/src/qpid/broker/Link.cpp 1327518 
>   /trunk/qpid/cpp/src/qpid/broker/SessionHandler.h 1327518 
>   /trunk/qpid/cpp/src/qpid/broker/SessionHandler.cpp 1327518 
>   /trunk/qpid/cpp/src/tests/run_federation_tests 1327518 
> 
> Diff: https://reviews.apache.org/r/4788/diff
> 
> 
> Testing
> -------
> 
> make check, repeated runs of relevant HA and federation tests.
> 
> 
> Thanks,
> 
> Alan
> 
>