git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@979775 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-07-27 17:04:24 +00:00
parent af5d8d154a
commit 5e0e4248de
1 changed files with 7 additions and 1 deletions

View File

@ -106,6 +106,10 @@ public class KahaTopicReferenceStore extends KahaReferenceStore implements Topic
if (LOG.isTraceEnabled()) {
LOG.trace(destination.getPhysicalName() + " add reference: " + messageId);
}
} else {
if (LOG.isTraceEnabled()) {
LOG.trace("no subscribers or duplicate add for: " + messageId);
}
}
} finally {
lock.unlock();
@ -182,8 +186,10 @@ public class KahaTopicReferenceStore extends KahaReferenceStore implements Topic
if (ackContainer.isEmpty() || subscriberMessages.size() == 1 || isUnreferencedBySubscribers(key, subscriberMessages, messageId)) {
// no message reference held
removeMessage = true;
// ensure we don't later add a reference
dispatchAudit.isDuplicate(messageId);
if (LOG.isDebugEnabled()) {
LOG.debug(destination.getPhysicalName() + " remove with no outstanding reference (dup ack): " + messageId);
LOG.debug(destination.getPhysicalName() + " remove with no outstanding reference (ack before add): " + messageId);
}
}
}