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

[STRMCMP-639] Trigger immediate rollback when job submission fails #117

Merged
merged 2 commits into from
Oct 9, 2019

Conversation

mwylde
Copy link
Contributor

@mwylde mwylde commented Oct 9, 2019

This PR adds another case to our immediate rollback (i.e., unretryable error) logic, that catches the case where the job submission fails. This typically happens due to an incompatible savepoint or an invalid jobgraph.

@@ -231,7 +231,11 @@ func (c *FlinkJobManagerClient) SubmitJob(ctx context.Context, url string, jarID
// Flink returns a 500 when the entry class doesn't exist or crashes on start, but we want to fail fast
// in those cases
body := response.String()
if strings.Contains(body, "org.apache.flink.client.program.ProgramInvocationException") {
// ProgramInvocationException is thrown when the entry class doesn't exist or throws an exception
if strings.Contains(body, "org.apache.flink.client.program.ProgramInvocationException") ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Can you move "org.apache.flink.client.program.ProgramInvocationException" to a const err variable ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@mwylde mwylde merged commit a45dc4c into master Oct 9, 2019
@mwylde mwylde deleted the micah_rollback_jobsubmission branch October 9, 2019 21:05
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