-
Notifications
You must be signed in to change notification settings - Fork 351
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
Health trait: Inconsistent Integration condition ready status #5351
Comments
I think @rinaldodev had to deal with this for some time. I don't recall if something has been fixed on camel side. |
Thanks. Here is the context: https://issues.apache.org/jira/plugins/servlet/mobile#issue/CAMEL-20242 |
The original Camel problem was fixed. However, it required some runtime properties to make it work, so, in order to fix the flaky test we should instead add those properties. We may use this as a workaround and wait for the framework to fix https://issues.apache.org/jira/browse/CAMEL-20244 definitively. |
* moved back the check to correctly expect constantly the readiness to be False * added the properties as expected by Camel Closes apache#5351
* moved back the check to correctly expect constantly the readiness to be False * added the properties as expected by Camel Closes #5351
What happened?
The E2E test TestHealthTrait (health_test.go) reveals a flaw that we have for quite some time regarding the Integration condition ready status.
An integration with heath trait enabled becomes ready for a short period of time regardless of the health evaluation. This is because before the health trait may evaluate the integration ready status the Deployment ready state has already reported the ready condition to be true.
This leads to the situation that a non ready integration (according to the health trait) becomes ready for a short amount of time just after the deployment has become ready.
We should make sure to have a consistent ready condition status on the integration resource. When health trait is enabled this should be the source of truth for the ready condition.
Steps to reproduce
Relevant log output
No response
Camel K version
2.3.0
The text was updated successfully, but these errors were encountered: