Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 52182 invoked from network); 16 Feb 2011 14:03:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2011 14:03:23 -0000 Received: (qmail 53679 invoked by uid 500); 16 Feb 2011 14:03:23 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 53212 invoked by uid 500); 16 Feb 2011 14:03:19 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 53196 invoked by uid 99); 16 Feb 2011 14:03:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 14:03:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 14:03:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6C85A1A848B for ; Wed, 16 Feb 2011 14:02:57 +0000 (UTC) Date: Wed, 16 Feb 2011 14:02:57 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <1055460544.20579.1297864977425.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <967787234.19530.1297825257636.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (AMQCPP-351) Using incorrect peer list in failover transport MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQCPP-351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995298#comment-12995298 ] Timothy Bish commented on AMQCPP-351: ------------------------------------- Patch fails to set the initialized state in the FailoverTransport, corrected in fix. > Using incorrect peer list in failover transport > ----------------------------------------------- > > Key: AMQCPP-351 > URL: https://issues.apache.org/jira/browse/AMQCPP-351 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: Transports > Affects Versions: 3.2.4 > Reporter: Adam Sussman > Assignee: Timothy Bish > Fix For: 3.3.0 > > Attachments: amqcpp-351.patch > > > In the failover transport, the broker hands the client a list of known peer brokers the client can attempt upon connection failure. In the Java client libs, this list of peers is obtained from the ConnectionControl object and that list is subject to various configuration controls on the broker. The C++ client gets its list from the BrokerInfo object who's list is NOT controlled at all by broker settings and which also retains query string artifacts that should not be used (see AMQ-3124). > The list of peers the C++ client is using is not correct and not under the same controls as the list the Java client is using. The C++ failover transport should be altered to use the same source of peer data as the Java client, the ConnectionControl object. > In currently released versions (3.2.4 and older), the entire reconnect list comes from BrokerInfo.getPeerBrokerInfos. In trunk, the list comes from BrokerInfo.getPeerBrokerInfos PLUS ConnectionControl.getReconnectTo. However, the Java client gets its list from ConnectionControl.getConnectedBrokers plus ConnectionControl.getReconnectTo and does not use BrokerInfo at all. > At a minimum, the usage of BrokerInfo.getPeerBrokerInfos needs to be removed in FailoverTransportListener.cpp and usage of getConnectedBrokers needs to be added to FailoverTransport.cpp:handleConnectionControl. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira