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
fix: spark application check fails on missing section #6036
Conversation
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #6036 +/- ##
==========================================
+ Coverage 40.94% 40.97% +0.03%
==========================================
Files 147 147
Lines 19682 19691 +9
==========================================
+ Hits 8059 8069 +10
- Misses 10516 10518 +2
+ Partials 1107 1104 -3
Continue to review full report at Codecov.
|
resource_customizations/sparkoperator.k8s.io/SparkApplication/health.lua
Show resolved
Hide resolved
Returned the check for the number of running executors with additional guard condition. |
Thank you! Health check looks great now. Unit test broke - I think you just need to change the expected health check message. |
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* fix: spark application check fails on missing section Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This PR fixes issue #6035.
Modify the check to safely validate optional
executorState
section.Running state immediately after job has been created
obj.status.executorState
is not present yet and health check also throws exception.Running state after executors have been created
Please notice that
obj.status.executorState
is present now.Failed state
obj.status.executorState
is not present at all.