[ 
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:
--------------------------------------

Reproducer:

#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;
  c.open();
  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;
  //s2.acknowledge();
  cout << "Close r" << endl;
  r.close();
  //s2.sync();
  //s2.close();
  s1.sync();
  s1.close();
  c.close();
  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 process.

--
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-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to