ARTEMIS-2591 add details to consumer lock timeout log

This commit is contained in:
Justin Bertram 2020-01-08 11:18:56 -06:00 committed by Clebert Suconic
parent c23c2e0e38
commit 6a290cf2b2
2 changed files with 3 additions and 3 deletions

View File

@ -870,8 +870,8 @@ public interface ActiveMQServerLogger extends BasicLogger {
void broadcastGroupClosed(@Cause Exception e);
@LogMessage(level = Logger.Level.WARN)
@Message(id = 222109, value = "Timed out waiting for write lock on consumer. Check the Thread dump", format = Message.Format.MESSAGE_FORMAT)
void timeoutLockingConsumer();
@Message(id = 222109, value = "Timed out waiting for write lock on consumer {0} from {1}. Check the Thread dump", format = Message.Format.MESSAGE_FORMAT)
void timeoutLockingConsumer(String consumer, String remoteAddress);
@LogMessage(level = Logger.Level.WARN)
@Message(id = 222110, value = "no queue IDs defined!, originalMessage = {0}, copiedMessage = {1}, props={2}",

View File

@ -754,7 +754,7 @@ public class ServerConsumerImpl implements ServerConsumer, ReadyListener {
private boolean flushDelivery() {
try {
if (!pendingDelivery.await(30, TimeUnit.SECONDS)) {
ActiveMQServerLogger.LOGGER.timeoutLockingConsumer();
ActiveMQServerLogger.LOGGER.timeoutLockingConsumer(this.toString(), session.getRemotingConnection().getTransportConnection().getRemoteAddress());
if (server != null) {
server.threadDump();
}