[ARTEMIS-1823] - Log warning on boot when persistence is disabled and paging enabled
no tests are needed as this is a simple logging change.
This commit is contained in:
parent
5daa3769aa
commit
04d8390513
|
@ -1934,4 +1934,8 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
||||||
@LogMessage(level = Logger.Level.WARN)
|
@LogMessage(level = Logger.Level.WARN)
|
||||||
@Message(id = 224091, value = "Bridge {0} is unable to connect to destination. Retrying", format = Message.Format.MESSAGE_FORMAT)
|
@Message(id = 224091, value = "Bridge {0} is unable to connect to destination. Retrying", format = Message.Format.MESSAGE_FORMAT)
|
||||||
void errorConnectingBridgeRetry(Bridge bridge);
|
void errorConnectingBridgeRetry(Bridge bridge);
|
||||||
|
|
||||||
|
@LogMessage(level = Logger.Level.INFO)
|
||||||
|
@Message(id = 224092, value = "Despite disabled persistence, page files will be persisted.", format = Message.Format.MESSAGE_FORMAT)
|
||||||
|
void pageWillBePersisted();
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,6 +154,7 @@ import org.apache.activemq.artemis.core.server.reload.ReloadManager;
|
||||||
import org.apache.activemq.artemis.core.server.reload.ReloadManagerImpl;
|
import org.apache.activemq.artemis.core.server.reload.ReloadManagerImpl;
|
||||||
import org.apache.activemq.artemis.core.server.transformer.Transformer;
|
import org.apache.activemq.artemis.core.server.transformer.Transformer;
|
||||||
import org.apache.activemq.artemis.core.settings.HierarchicalRepository;
|
import org.apache.activemq.artemis.core.settings.HierarchicalRepository;
|
||||||
|
import org.apache.activemq.artemis.core.settings.impl.AddressFullMessagePolicy;
|
||||||
import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
|
import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
|
||||||
import org.apache.activemq.artemis.core.settings.impl.DeletionPolicy;
|
import org.apache.activemq.artemis.core.settings.impl.DeletionPolicy;
|
||||||
import org.apache.activemq.artemis.core.settings.impl.HierarchicalObjectRepository;
|
import org.apache.activemq.artemis.core.settings.impl.HierarchicalObjectRepository;
|
||||||
|
@ -2323,6 +2324,16 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
||||||
deployAddressSettingsFromConfiguration();
|
deployAddressSettingsFromConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//fix of ARTEMIS-1823
|
||||||
|
if (!configuration.isPersistenceEnabled()) {
|
||||||
|
for (AddressSettings addressSettings : addressSettingsRepository.values()) {
|
||||||
|
if (addressSettings.getAddressFullMessagePolicy() == AddressFullMessagePolicy.PAGE) {
|
||||||
|
ActiveMQServerLogger.LOGGER.pageWillBePersisted();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
storageManager.start();
|
storageManager.start();
|
||||||
|
|
||||||
postOffice.start();
|
postOffice.start();
|
||||||
|
|
Loading…
Reference in New Issue