Skip to content

Commit

Permalink
Lazy configuration processing, printing all errors at once (#19801)
Browse files Browse the repository at this point in the history
* Lazy configuration processing, printing all errors at once

* Added changelog
  • Loading branch information
todvora authored Jul 2, 2024
1 parent 843a083 commit 33dfb06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/issue-19207.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type="c"
message="Lazy configuration processing for datanode, collecting all errors in one go."

issues=["19207"]
pulls=["19801"]
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ public void doRun(Level logLevel) {

coreConfigInjector = setupCoreConfigInjector();

processConfiguration(jadConfig);

if (isDumpConfig()) {
dumpCurrentConfigAndExit();
}
Expand Down Expand Up @@ -421,7 +419,7 @@ private void installConfigRepositories() {

protected void processConfiguration(JadConfig jadConfig) {
try {
jadConfig.process();
jadConfig.processFailingLazily();
} catch (RepositoryException e) {
LOG.error("Couldn't load configuration: {}", e.getMessage());
System.exit(1);
Expand Down

0 comments on commit 33dfb06

Please sign in to comment.