Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 500779 - Feature: Provide access to the Connection a Session corresponds to
Feature: Provide access to the Connection a Session corresponds to
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp (Show other bugs)
1.1.1
All Linux
high Severity medium
: 1.3
: ---
Assigned To: Gordon Sim
Frantisek Reznicek
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-14 04:33 EDT by Gordon Sim
Modified: 2015-11-15 19:07 EST (History)
4 users (show)

See Also:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-14 12:07:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0773 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging and Grid Version 1.3 2010-10-14 11:56:44 EDT

  None (edit)
Description Gordon Sim 2009-05-14 04:33:19 EDT
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 10:56:14 EST
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 08:12:05 EST
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 05:20:58 EST
Created attachment 399045 [details]
Updated feature reproducer bz500779.cpp
Comment 5 Frantisek Reznicek 2010-03-10 05:23:20 EST
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 14:17:07 EDT
    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 06:06:15 EDT
    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 12:07:06 EDT
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.