mirror of https://github.com/apache/activemq.git
no jira - additional trace logging to kahadb cleanup/gc to identify datafile for durable sub command and pending count by sub key
This commit is contained in:
parent
46148e3dd1
commit
5d03224880
|
@ -1923,7 +1923,7 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
|
||||||
(pendingAcks.size() == 1 && pendingAcks.getTail().range() == 1)) {
|
(pendingAcks.size() == 1 && pendingAcks.getTail().range() == 1)) {
|
||||||
|
|
||||||
if (LOG.isTraceEnabled()) {
|
if (LOG.isTraceEnabled()) {
|
||||||
LOG.trace("Found candidate for rewrite: {} from file {}", entry.getKey(), dataFileId);
|
LOG.trace("Found candidate for rewrite: sub {} on {} from file {}", subscriptionKey, entry.getKey(), dataFileId);
|
||||||
}
|
}
|
||||||
|
|
||||||
final KahaSubscriptionCommand kahaSub =
|
final KahaSubscriptionCommand kahaSub =
|
||||||
|
@ -1939,6 +1939,12 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (LOG.isTraceEnabled()) {
|
||||||
|
final StoredDestination destination = entry.getValue();
|
||||||
|
final String subscriptionKey = subscription.getKey();
|
||||||
|
final SequenceSet pendingAcks = destination.ackPositions.get(tx, subscriptionKey);
|
||||||
|
LOG.trace("sub {} on {} in dataFile {} has pendingCount {}", subscriptionKey, entry.getKey(), dataFileId, pendingAcks.rangeSize()-1);
|
||||||
|
}
|
||||||
gcCandidateSet.remove(dataFileId);
|
gcCandidateSet.remove(dataFileId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue