ARTEMIS-846 Disk full should be informed during blocking as well
https://issues.apache.org/jira/browse/ARTEMIS-846
This commit is contained in:
parent
3b45435c76
commit
5acb6953a6
|
@ -681,7 +681,11 @@ public class PagingStoreImpl implements PagingStore {
|
|||
}
|
||||
|
||||
if (!blocking.get()) {
|
||||
ActiveMQServerLogger.LOGGER.blockingMessageProduction(address, sizeInBytes.get(), maxSize);
|
||||
if (pagingManager.isDiskFull()) {
|
||||
ActiveMQServerLogger.LOGGER.blockingDiskFull(address);
|
||||
} else {
|
||||
ActiveMQServerLogger.LOGGER.blockingMessageProduction(address, sizeInBytes.get(), maxSize);
|
||||
}
|
||||
blocking.set(true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1261,6 +1261,11 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
|||
format = Message.Format.MESSAGE_FORMAT)
|
||||
void diskCapacityRestored();
|
||||
|
||||
@LogMessage(level = Logger.Level.WARN)
|
||||
@Message(id = 222212, value = "Disk Full! Blocking message production on address ''{0}''. Clients will report blocked.", format = Message.Format.MESSAGE_FORMAT)
|
||||
void blockingDiskFull(SimpleString addressName);
|
||||
|
||||
|
||||
@LogMessage(level = Logger.Level.ERROR)
|
||||
@Message(id = 224000, value = "Failure in initialisation", format = Message.Format.MESSAGE_FORMAT)
|
||||
void initializationError(@Cause Throwable e);
|
||||
|
|
Loading…
Reference in New Issue