-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Failure Analysis for InvalidConfigurationPropertyValueException is skipped when the property is not set #33261
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
Comments
Hey, is anyone looking into this ? If there's not a too strict timeline, I can dive deep. Let me know what's your opinion |
Thanks for the offer, @protyay. No one is looking at it and you're more than welcome to do so, but we really don't know how to tackle this one yet. As @snicoll said, the best course of action isn't clear so we probably need to spend some time figuring out what needs to be done before anyone can start working on this one. I'll update the issue's labels to reflect this. |
We seem to have two places where we create an Lines 142 to 145 in 126927f
Lines 69 to 74 in 126927f
In each case, I don't think we're really throwing the right exception. In the
In the Kafka Streams case, it's two properties again as neither We could update
For 2, we should perhaps also consider making the auto-configuration back off somehow rather than failing when the property isn't set. I'm not sure if that would be the best behavior here but the way it currently works does feel a little unusual. |
With some changes in place to still perform analysis when the environment doesn't contain the property, something like this is logged:
For this particular case it could be improved with a custom exception for an invalid combination of property values but I think it's better than no analysis at all for the general |
We're going to add the fix Andy suggested above and look at adding a different exception type for Wavefront and Kafka. |
There are a number of places where we throw
InvalidConfigurationPropertyValueException
to indicate that a value should have been set.WavefrontProperties
does so if the API token has not been set.The related
InvalidConfigurationPropertyValueFailureAnalyzer
has no effect as it tries to find a property in the environment that matches the one in the exception. If no property is set, the analysis doesn't do anything and the raw exception is thrown.I don't know what's the best course of action for this is. Invalid and missing are two different things and I am not sure the failure analyzer should be the one deciding which is which.
The text was updated successfully, but these errors were encountered: