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

control-service: Fix JsonSyntaxException when cancelling execution #192

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

mrMoZ1
Copy link
Contributor

@mrMoZ1 mrMoZ1 commented Sep 3, 2021

Why: During testing of the new feature - cancelling a running or submitted
data job execution I stumbled upon an error in the K8S api. A sucessfull
call would throw a JsonSyntaxException. This is a known issue on the K8S
API - kubernetes-client/java#86 . We already handle
this in other methods.

What: Mimicked the way we handle this exception in our codebase and
modified the cancelRunningCronJob method to handle JsonSyntaxExceptions.

Type: Bug fix.

Testing: ci/cd and ran tests concerning Execution cancellation locally.

Signed-off-by: Momchil Zhivkov [email protected]

Why: During testing of the new feature - cancelling a running or submitted
data job execution I stumbled upon an error in the K8S api. A sucessfull
call would throw a JsonSyntaxException. This is a known issue on the K8S
API - kubernetes-client/java#86 . We already handle
this in other methods.

What: Mimicked the way we handle this exception in our codebase and
modified the cancelRunningCronJob method to handle JsonSyntaxExceptions.

Type: Bug fix.

Testing: ci/cd and ran tests concerning Execution cancellation locally.

Signed-off-by: mrMoZ1 <[email protected]>
@mrMoZ1 mrMoZ1 merged commit 803942c into main Sep 7, 2021
@mrMoZ1 mrMoZ1 deleted the control-service/fix-json-syntax-err branch September 7, 2021 09:42
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