-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-32839 Fix Thor aborting race #19220
HPCC-32839 Fix Thor aborting race #19220
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-32839 Jirabot Action Result: |
common/workunit/workunit.cpp
Outdated
throw new WorkflowException(0, "Workunit abort requested", 0, WorkflowException::ABORT, MSGAUD_user); | ||
case WUStateFailed: | ||
throw makeStringException(0, "Workunit failed"); | ||
defualt: |
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.
typo: will not compile!
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.
that's nasty - it does compile! It's seeing it as a goto statement label :( - you'd hope it would spot this likely bad pattern and error, but nope.
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.
Now fixed (squashed in)
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.
That is horrible!
@GordonSmith I thought the K8s tests build a containerized version. That doesn't seem to be the case - since this should fail to compile on containerized. |
When a Thor workunit was aborted in k8s, there was a race condition which could cause the job to continue and fail with an unrelated spurious/confusing error. Signed-off-by: Jake Smith <[email protected]>
1c723c7
to
316444e
Compare
Jirabot Action Result: |
When a Thor workunit was aborted in k8s, there was a race condition which could cause the job to continue and fail with an unrelated spurious/confusing error.
Type of change:
Checklist:
Smoketest:
Testing: