Skip to content

Log only overridden config in BookieServer startup#4768

Open
merlimat wants to merge 1 commit intoapache:masterfrom
merlimat:bookie-server-startup-log
Open

Log only overridden config in BookieServer startup#4768
merlimat wants to merge 1 commit intoapache:masterfrom
merlimat:bookie-server-startup-log

Conversation

@merlimat
Copy link
Copy Markdown
Contributor

Summary

  • BookieServer was dumping the entire ServerConfiguration as a formatted JSON blob at startup, which is huge and distracting in logs.
  • Replace it with a single structured Starting Bookie server log entry that carries an overrides attribute containing only the config entries that differ from the built-in defaults.
  • Overrides are computed by iterating the in-memory configuration (properties explicitly set via config file or setProperty) and skipping anything whose value matches a fresh new ServerConfiguration().

Test plan

  • mvn -pl bookkeeper-server compile test-compile passes.
  • Start a bookie with a custom bk_server.conf and confirm the log entry shows only the user-set overrides, not the full config.

Replace the JSON dump of the entire ServerConfiguration with a
"Starting Bookie server" message that carries an "overrides" attribute
holding only the entries that differ from the built-in defaults.
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.

1 participant