This closes #1803
This commit is contained in:
commit
974bdd622e
|
@ -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}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue