This closes #2048
This commit is contained in:
commit
3e9ee356fc
|
@ -1795,4 +1795,8 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
|||
@LogMessage(level = Logger.Level.WARN)
|
||||
@Message(id = 224078, value = "The size of duplicate cache detection (<id_cache-size/>) appears to be too large {0}. It should be no greater than the number of messages that can be squeezed into conformation buffer (<confirmation-window-size/>) {1}.", format = Message.Format.MESSAGE_FORMAT)
|
||||
void duplicateCacheSizeWarning(int idCacheSize, int confirmationWindowSize);
|
||||
|
||||
@LogMessage(level = Logger.Level.INFO)
|
||||
@Message(id = 224092, value = "Despite disabled persistence, page files will be persisted.", format = Message.Format.MESSAGE_FORMAT)
|
||||
void pageWillBePersisted();
|
||||
}
|
||||
|
|
|
@ -146,6 +146,7 @@ import org.apache.activemq.artemis.core.server.reload.ReloadCallback;
|
|||
import org.apache.activemq.artemis.core.server.reload.ReloadManager;
|
||||
import org.apache.activemq.artemis.core.server.reload.ReloadManagerImpl;
|
||||
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.HierarchicalObjectRepository;
|
||||
import org.apache.activemq.artemis.core.settings.impl.ResourceLimitSettings;
|
||||
|
@ -2052,6 +2053,16 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
|||
deployAddressSettingsFromConfiguration();
|
||||
}
|
||||
|
||||
//fix of ARTEMIS-1823
|
||||
if (!configuration.isPersistenceEnabled()) {
|
||||
for (AddressSettings addressSettings : addressSettingsRepository.values()) {
|
||||
if (addressSettings.getAddressFullMessagePolicy() == AddressFullMessagePolicy.PAGE) {
|
||||
ActiveMQServerLogger.LOGGER.pageWillBePersisted();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
storageManager.start();
|
||||
|
||||
postOffice.start();
|
||||
|
|
Loading…
Reference in New Issue