Skip to content

ARTEMIS-6099 Add log message when configuration reload is complete#6499

Open
rii13024 wants to merge 2 commits into
apache:mainfrom
rii13024:ARTEMIS-6099
Open

ARTEMIS-6099 Add log message when configuration reload is complete#6499
rii13024 wants to merge 2 commits into
apache:mainfrom
rii13024:ARTEMIS-6099

Conversation

@rii13024
Copy link
Copy Markdown

@rii13024 rii13024 commented Jun 5, 2026

Summary:
Adds a new INFO-level log message (AMQ221087) that is emitted when the entire configuration reload operation completes.

Problem:
Currently, the broker logs individual configuration reload steps (AMQ221056) but does not log when the entire reload operation completes. This makes it difficult to determine when the broker is ready for status checks after a configuration reload.

Changes:

  • Added a new log message: AMQ221087: Configuration reload completed in ActiveMQServerLogger
  • Log is emitted in ActiveMQServerImpl.reloadConfigurationFile() after all reload operations finish
  • Added integration test: RedeployTest.testReloadCompletion() to verify the log message appears exactly once

Testing:

  • 'testReloadCompletion()' validates the log message is emitted and passes successfully

Copilot AI review requested due to automatic review settings June 5, 2026 14:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds an explicit INFO log indicating configuration reload completion and covers it with an integration test to ensure the completion signal is emitted exactly once.

Changes:

  • Emit a new server log event (AMQ221087) when configuration reload finishes.
  • Add an integration test that reloads broker config and asserts the completion log is produced.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/RedeployTest.java Adds an integration test asserting a “reload completed” log is emitted once.
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java Hooks the new completion log into the reload flow (and adjusts reload sequencing).
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java Introduces a new log message ID and method for “Configuration reload completed”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…ling whitespace in logger, add proper async wait in test using Wait.assertTrue()
configurationReloadDeployed.set(false);
if (isActive()) {
deployReloadableConfigFromConfiguration();
ActiveMQServerLogger.LOGGER.configurationReloadCompleted();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be the last line in deployReloadableConfigFromConfiguration(), in side the if that flips the configurationReloadDeployed boolean. Check the callers, there is a path to deployReloadableConfigFromConfiguration from startup that we need to capture.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but the test is perfect!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants