This commit is contained in:
Howard Gao 2018-01-23 10:52:05 +08:00
commit 974bdd622e
3 changed files with 8 additions and 1 deletions

View File

@ -49,7 +49,7 @@ ${jdbc}
<journal-min-files>2</journal-min-files>
<journal-pool-files>-1</journal-pool-files>
<journal-pool-files>10</journal-pool-files>
<journal-file-size>10M</journal-file-size>
${journal-buffer.settings}${ping-config.settings}${connector-config.settings}

View File

@ -862,6 +862,9 @@ public class ConfigurationImpl implements Configuration, Serializable {
@Override
public Configuration setJournalPoolFiles(int poolSize) {
this.journalPoolFiles = poolSize;
if (!Env.isTestEnv()) {
ActiveMQServerLogger.LOGGER.useFixedValueOnJournalPoolFiles();
}
return this;
}

View File

@ -1574,6 +1574,10 @@ public interface ActiveMQServerLogger extends BasicLogger {
@Message(id = 222268, value = "Failed to remove a record", format = Message.Format.MESSAGE_FORMAT)
void failedToRemoveRecord(@Cause Exception e);
@LogMessage(level = Logger.Level.WARN)
@Message(id = 222269, value = "Please use a fixed value for \"journal-pool-files\". Default changed per https://issues.apache.org/jira/browse/ARTEMIS-1628", format = Message.Format.MESSAGE_FORMAT)
void useFixedValueOnJournalPoolFiles();
@LogMessage(level = Logger.Level.ERROR)
@Message(id = 224000, value = "Failure in initialisation", format = Message.Format.MESSAGE_FORMAT)
void initializationError(@Cause Throwable e);