Bug 1136029
| Summary: | QMF queue depth not dropped for priority queues in one scenario | ||
|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Pavel Moravec <pmoravec> |
| Component: | qpid-cpp | Assignee: | messaging-bugs <messaging-bugs> |
| Status: | CLOSED DUPLICATE | QA Contact: | Messaging QE <messaging-qe-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.5 | CC: | jross, mcressma |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | qpid-cpp-0.18-31 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-03 17:50:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Pavel Moravec
2014-09-01 13:25:11 UTC
qpid-route.cpp:
#include <qpid/messaging/Address.h>
#include <qpid/messaging/Connection.h>
#include <qpid/messaging/Message.h>
#include <qpid/messaging/Receiver.h>
#include <qpid/messaging/Sender.h>
#include <qpid/messaging/Session.h>
#include <iostream>
using namespace qpid::messaging;
int main(int argc, char** argv) {
std::string broker = "localhost:5672";
std::string connectionOptions = "";
const std::string FirstQ ("FirstQ");
const std::string SecondQ ("SecondQ");
Connection connection(broker, connectionOptions);
try {
connection.open();
Session session = connection.createSession();
int64_t count = 1;
while (true)
{
Receiver receiver1 = session.createReceiver(FirstQ);
Sender sender1 = session.createSender(SecondQ);
std::cout << "Sending from " << FirstQ << " to " << SecondQ << std::endl;
Message message;
while (receiver1.fetch(message, Duration::SECOND * 1))
sender1.send(message);
session.acknowledge();
std::cout << "------------------------- End Round " << count++ << " --------------------------" << std::endl;
} //End while
connection.close();
return 0;
} catch(const std::exception& error) {
std::cerr << error.what() << std::endl;
connection.close();
return 1;
}
}
This is just a side effect bug of bz1136294. Again, as queue policy is not updated (as explained in https://bugzilla.redhat.com/show_bug.cgi?id=1136294#c2), dequeue counter is not incremented (that is done in queue policy call that is skipped due to the bug). queue depth is simply calculated as #enqueues - #dequeues. /me saw proper counters during mine verification of bz1136294. *** This bug has been marked as a duplicate of bug 1136294 *** |