ARTEMIS-2591 add details to consumer lock timeout log
This commit is contained in:
parent
c23c2e0e38
commit
6a290cf2b2
|
@ -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}",
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue