qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Goldstein (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-4223) [New HA] Completion isn't sent when queue that has acquired but unacknowledged messages is deleted
Date Thu, 16 Aug 2012 02:41:38 GMT

    [ https://issues.apache.org/jira/browse/QPID-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435731#comment-13435731

Andy Goldstein commented on QPID-4223:


#include <qpid/messaging/Connection.h>
#include <qpid/messaging/Session.h>
#include <qpid/messaging/Sender.h>
#include <qpid/messaging/Receiver.h>
#include <qpid/messaging/Message.h>
#include <iostream>

using namespace std;
using namespace qpid::messaging;

int main() {
  Connection c;
  Session s1 = c.createSession();
  Session s2 = c.createSession();
  cout << "Sending" << endl;
  s1.createSender("ready; {create:always}").send(Message());
  cout << "Create r" << endl;
  Receiver r = s2.createReceiver("ready; {create:receiver, delete:receiver}");
  cout << "Fetch" << endl;
  Message m = r.fetch();
  //cout << "ack" << endl;
  cout << "Close r" << endl;
  return 0;
> [New HA] Completion isn't sent when queue that has acquired but unacknowledged messages
is deleted
> --------------------------------------------------------------------------------------------------
>                 Key: QPID-4223
>                 URL: https://issues.apache.org/jira/browse/QPID-4223
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, C++ Clustering
>    Affects Versions: 0.18
>            Reporter: Andy Goldstein
>            Assignee: Alan Conway
> When testing the new HA in 0.18 (from the svn branch, revision 1370693), I've run into
a problem where I can't run qpid-cpp-benchmark after I shut down one of the backups.  Here's
the scenario:
> Start 3 brokers (in my test on 3 different hosts) using the following command line:
> qpidd --auth no --load-module ha.so --ha-cluster yes --ha-brokers-url <insert url
here> --ha-replicate all
> Promote 1 of the brokers to primary.  Run qpid-cpp-benchmark with the default options.
 The test should succeed and provide results.  Next, quit 1 of the 2 backups.  Finally, run
qpid-cpp-benchmark again.  This time, it hangs.  Looking at the output of "qpid-stat -q,"
I see there are some unacked messages that have been delivered to the running qpid-receive

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message