-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add new error code for queries killed due to too many tasks on cluster #24465
base: master
Are you sure you want to change the base?
Add new error code for queries killed due to too many tasks on cluster #24465
Conversation
presto-spi/src/main/java/com/facebook/presto/spi/StandardErrorCode.java
Outdated
Show resolved
Hide resolved
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.
One minor comment, but rest looks good.
presto-native-execution/velox
Outdated
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.
do we need to remove this or it is safe to keep it?
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.
Sorry I don't follow- what are you referring to removing?
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.
Well I don't understand what the changeset in GitHub is showing but it should be fixed :)
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.
No worries. That diff file is gone.
7b96da8
to
662ef83
Compare
662ef83
to
9f0ae68
Compare
Description
In cases where a cluster needs to kill queries to stay under the configured threshold, we were using the same error code as cases where a query has more tasks than the configured threshold. This differentiates these and makes the former case an internal error.
Impact
In the first case, users will see updated error messaging reflecting the internal error.
Test Plan
Changes existing tests to reflect new error codes.
Contributor checklist