Skip to content

Commit

Permalink
This closes #1803
Browse files Browse the repository at this point in the history
  • Loading branch information
howardgao committed Jan 23, 2018
2 parents 42049bf + 3522248 commit 974bdd6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Expand Up @@ -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}
Expand Down
Expand Up @@ -862,6 +862,9 @@ public int getJournalPoolFiles() {
@Override
public Configuration setJournalPoolFiles(int poolSize) {
this.journalPoolFiles = poolSize;
if (!Env.isTestEnv()) {
ActiveMQServerLogger.LOGGER.useFixedValueOnJournalPoolFiles();
}
return this;
}

Expand Down
Expand Up @@ -1574,6 +1574,10 @@ void slowConsumerDetected(String sessionID,
@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);
Expand Down

0 comments on commit 974bdd6

Please sign in to comment.