mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4621 - return modified trace logging
This commit is contained in:
parent
25af8e62cc
commit
269d44cfdd
|
@ -149,10 +149,10 @@ public class AbortSlowAckConsumerStrategy extends AbortSlowConsumerStrategy {
|
||||||
if (getMaxSlowDuration() > 0 && (entry.getValue().markCount * getCheckPeriod() >= getMaxSlowDuration()) ||
|
if (getMaxSlowDuration() > 0 && (entry.getValue().markCount * getCheckPeriod() >= getMaxSlowDuration()) ||
|
||||||
getMaxSlowCount() > 0 && entry.getValue().slowCount >= getMaxSlowCount()) {
|
getMaxSlowCount() > 0 && entry.getValue().slowCount >= getMaxSlowCount()) {
|
||||||
|
|
||||||
LOG.trace("Transferring consumer {} to the abort list: " +
|
LOG.trace("Transferring consumer{} to the abort list: {} slow duration = {}, slow count = {}",
|
||||||
"slow duration = " + entry.getValue().markCount * getCheckPeriod() + ", " +
|
new Object[]{ entry.getKey().getConsumerInfo().getConsumerId(),
|
||||||
"slow count = " + entry.getValue().slowCount,
|
entry.getValue().markCount * getCheckPeriod(),
|
||||||
entry.getKey().getConsumerInfo().getConsumerId());
|
entry.getValue().getSlowCount() });
|
||||||
|
|
||||||
toAbort.put(entry.getKey(), entry.getValue());
|
toAbort.put(entry.getKey(), entry.getValue());
|
||||||
slowConsumers.remove(entry.getKey());
|
slowConsumers.remove(entry.getKey());
|
||||||
|
|
Loading…
Reference in New Issue