Bug 500779 - Feature: Provide access to the Connection a Session corresponds to
Summary: Feature: Provide access to the Connection a Session corresponds to
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 1.1.1
Hardware: All
OS: Linux
high
medium
Target Milestone: 1.3
: ---
Assignee: Gordon Sim
QA Contact: Frantisek Reznicek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-14 08:33 UTC by Gordon Sim
Modified: 2015-11-16 00:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
When using the 'FailoverManager', the "FailoverManager::Command::execute()" method only gets a session passed to it, thus, the connection for that session cannot easily be reached. With this update, a new method "SessionBase_0_10::getConnection" is provided and makes it easily possible to get the connection from a session.
Clone Of:
Environment:
Last Closed: 2010-10-14 16:07:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The feature reproducer bz500779.cpp (3.33 KB, text/x-c++src)
2010-02-10 13:12 UTC, Frantisek Reznicek
no flags Details
Updated feature reproducer bz500779.cpp (4.93 KB, text/x-c++src)
2010-03-10 10:20 UTC, Frantisek Reznicek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0773 0 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging and Grid Version 1.3 2010-10-14 15:56:44 UTC

Description Gordon Sim 2009-05-14 08:33:19 UTC
Description of problem:

When using FailoverManager the FailoverManager::Command::execute() method only gets a Session passed to it. Having a simple way of getting at the connection in use would be valuable.

Comment 2 Gordon Sim 2010-01-20 15:56:14 UTC
Added in r901247. There is a test in ClientSessionTest called testGetConnectionFromSession() that shows how the method can be tested,

Comment 3 Frantisek Reznicek 2010-02-10 13:12:05 UTC
Created attachment 389985 [details]
The feature reproducer bz500779.cpp

The isolated feature reproducer from the qpid boost unit test.

Currently in the phase of waiting for packages with feature.

Comment 4 Frantisek Reznicek 2010-03-10 10:20:58 UTC
Created attachment 399045 [details]
Updated feature reproducer bz500779.cpp

Comment 5 Frantisek Reznicek 2010-03-10 10:23:20 UTC
The feature has been implemented and it is working. Tested on RHEL4.8 and RHEL5.5 Alpha i386 / x86_64 on packages:
[root@mrg-qe-02 bzs]# rpm -qa | grep qpid | sort -u
python-qpid-0.7.917557-4.el5
qpid-cpp-client-0.7.916826-2.el5
qpid-cpp-client-devel-0.7.916826-2.el5
qpid-cpp-client-rdma-0.7.916826-2.el5
qpid-cpp-client-ssl-0.7.916826-2.el5
qpid-cpp-server-0.7.916826-2.el5
qpid-cpp-server-cluster-0.7.916826-2.el5
qpid-cpp-server-devel-0.7.916826-2.el5
qpid-cpp-server-rdma-0.7.916826-2.el5
qpid-cpp-server-ssl-0.7.916826-2.el5
qpid-cpp-server-store-0.7.916826-2.el5
qpid-cpp-server-xml-0.7.916826-2.el5
qpid-dotnet-0.4.738274-2.el5
qpid-java-client-0.7.918215-1.el5
qpid-java-common-0.7.918215-1.el5
qpid-tools-0.7.917557-4.el5

-> VERIFIED

Comment 6 mick 2010-10-07 18:17:07 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause:
    When using FailoverManager the FailoverManager::Command::execute() 
    method only gets a Session passed to it.

  Consequence:
    The connection for that session cannot easily be reached.

  Fix:
    Provide a new method SessionBase_0_10::getConnection

  Result:
    It is now easy to get the connection from a session, as
    demonstrated in src/tests/ClientSessionTest.cpp
    testGetConnectionFromSession

Comment 7 Martin Prpič 2010-10-10 10:06:15 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,14 +1 @@
-Cause:
+When using the 'FailoverManager', the "FailoverManager::Command::execute()" method only gets a session passed to it, thus, the connection for that session cannot easily be reached. With this update, a new method "SessionBase_0_10::getConnection" is provided and makes it easily possible to get the connection from a session.-    When using FailoverManager the FailoverManager::Command::execute() 
-    method only gets a Session passed to it.
-
-  Consequence:
-    The connection for that session cannot easily be reached.
-
-  Fix:
-    Provide a new method SessionBase_0_10::getConnection
-
-  Result:
-    It is now easy to get the connection from a session, as
-    demonstrated in src/tests/ClientSessionTest.cpp
-    testGetConnectionFromSession

Comment 9 errata-xmlrpc 2010-10-14 16:07:06 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2010-0773.html


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