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

Fix: Fail the job submit if the flink run returns a non-zero exit code #203

Merged
merged 2 commits into from
Jan 13, 2022

Conversation

yolgun
Copy link
Contributor

@yolgun yolgun commented Jan 13, 2022

No description provided.

Copy link
Contributor

@regadas regadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch @yolgun. Thanks!

# check the job's exit code
if [ $job_exit_code -ne 0 ]; then
write_term_log_msg "Job failed with a non-zero exit code: ${job_exit_code}" "submit_log"
return 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yolgun why not return 1 as well? 2 normally means shell misuse.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed it

@regadas regadas merged commit fb6277c into spotify:master Jan 13, 2022
wseaton pushed a commit to wseaton/flink-on-k8s-operator that referenced this pull request Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants