Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #23735: Exception when bad input for inventory duration config #5178

Conversation

clarktsiory
Copy link
Contributor

@clarktsiory clarktsiory commented Nov 16, 2023

https://issues.rudder.io/issues/23735

The only message that an ExceptionInInitializerError provides is null, so we do not want to show the message but the cause instead...

Also for config value errors, adopting a standard error format and catching errors could always be beneficial so I used that to improve the errors logs during boot when config errors should prevent the server from running...

I also took into account the suggestions to add comments to the sample configuration file, and use the main value rudder.batch.reportsCleaner.deleteLogReport.TTL in the configuration in favor of rudder.batch.reportsCleaner.deleteReportLog.TTL (which we do not use in the code)

@clarktsiory
Copy link
Contributor Author

PR updated with a new commit

1 similar comment
@clarktsiory
Copy link
Contributor Author

PR updated with a new commit

@clarktsiory
Copy link
Contributor Author

PR updated with a new commit

Copy link
Member

@fanf fanf left a comment

Choose a reason for hiding this comment

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

LGTM

Nice output on error:
image
👍

@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder/pull/5178
-- Your faithful QA
Kant merge: "Science is organized knowledge. Wisdom is organized life."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/76563/console)

@fanf
Copy link
Member

fanf commented Nov 29, 2023

OK, squash merging this PR

@fanf fanf force-pushed the bug_23735/exception_when_bad_input_for_inventory_duration_config branch from bee959b to 6e5580f Compare November 29, 2023 17:28
@fanf fanf merged commit 6e5580f into Normation:branches/rudder/8.0 Nov 29, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants