Allow OTP to start when unexpected enum values is encountered in config.#4983
Merged
Conversation
dfc4fe7 to
52405ad
Compare
Enum values can be added or deleted; Hence to allow OTP to be forward and backward compatible unknown values must be logged(WARNING) and ignored. The Server should not terminate.
52405ad to
f38676a
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #4983 +/- ##
=============================================
+ Coverage 63.90% 63.92% +0.01%
- Complexity 13501 13513 +12
=============================================
Files 1674 1674
Lines 66152 66196 +44
Branches 7155 7158 +3
=============================================
+ Hits 42274 42314 +40
- Misses 21492 21497 +5
+ Partials 2386 2385 -1
... and 9 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
leonardehrenfried
requested changes
Mar 22, 2023
leonardehrenfried
left a comment
Member
There was a problem hiding this comment.
I have a couple of requests.
jtorin
suggested changes
Mar 22, 2023
e25e51d to
822a8d6
Compare
jtorin
approved these changes
Mar 28, 2023
leonardehrenfried
approved these changes
Mar 28, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enum values can be added or deleted; Hence to allow OTP to be forward and backward compatible unknown values must be logged(WARNING) and ignored. The Server should not terminate.
The new log items look like this:
In this case I started OTP with a "Fake" feature.
Issue
Partially fixes #4980
Unit tests
Updated
Documentation
Updated