Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 627709 Details for
Bug 866677
[RFE] Improved broker logging for expired messages
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch
bz866677.patch (text/plain), 1.71 KB, created by
Jason Dillaman
on 2012-10-15 21:23:09 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jason Dillaman
Created:
2012-10-15 21:23:09 UTC
Size:
1.71 KB
patch
obsolete
>diff --git a/qpid/cpp/src/qpid/broker/Queue.cpp b/qpid/cpp/src/qpid/broker/Queue.cpp >index e04803c..975dbd2 100644 >--- a/qpid/cpp/src/qpid/broker/Queue.cpp >+++ b/qpid/cpp/src/qpid/broker/Queue.cpp >@@ -415,8 +415,7 @@ Queue::ConsumeCode Queue::consumeNextMessage(QueuedMessage& m, Consumer::shared_ > return NO_MESSAGES; > } > >- if (msg.payload->hasExpired()) { >- QPID_LOG(debug, "Message expired from queue '" << name << "'"); >+ if (isExpired(msg)) { > c->setPosition(msg.position); > dequeue(0, msg); > if (mgmtObject) { >@@ -611,10 +610,17 @@ bool collectIf(QueuedMessage& qm, Messages::Predicate predicate, > return false; > } > } >- >-bool isExpired(const QueuedMessage& qm) { return qm.payload->hasExpired(); } > } // namespace > >+bool Queue::isExpired(const QueuedMessage& qm) { >+ if (qm.payload->hasExpired()) { >+ QPID_LOG(debug, "Message expired from queue '" << qm.queue->getName() << "' properties:" << >+ *(qm.payload->getProperties<MessageProperties>())); >+ return true; >+ } >+ return false; >+} >+ > void Queue::dequeueIf(Messages::Predicate predicate, > std::deque<QueuedMessage>& dequeued) > { >diff --git a/qpid/cpp/src/qpid/broker/Queue.h b/qpid/cpp/src/qpid/broker/Queue.h >index d4beed9..2fa6253 100644 >--- a/qpid/cpp/src/qpid/broker/Queue.h >+++ b/qpid/cpp/src/qpid/broker/Queue.h >@@ -177,6 +177,7 @@ class Queue : public boost::enable_shared_from_this<Queue>, > bool checkNotDeleted(const Consumer::shared_ptr& c); > void notifyDeleted(); > void dequeueIf(Messages::Predicate predicate, std::deque<QueuedMessage>& dequeued); >+ static bool isExpired(const QueuedMessage& msg); > > public: >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 866677
: 627709