This commit is contained in:
Clebert Suconic 2020-01-08 12:31:15 -05:00
commit 046f076d39
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();
}