Skip to content

[SPARK-33526][SQL] Add config to control if cancel invoke interrupt task on thriftserver - #30481

Closed
ulysses-you wants to merge 12 commits into
apache:masterfrom
ulysses-you:SPARK-33526
Closed

[SPARK-33526][SQL] Add config to control if cancel invoke interrupt task on thriftserver#30481
ulysses-you wants to merge 12 commits into
apache:masterfrom
ulysses-you:SPARK-33526

Conversation

@ulysses-you

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR add a new config spark.sql.thriftServer.forceCancel to give user a way to interrupt task when cancel statement.

Why are the changes needed?

After #29933, we support cancel query if timeout, but the default behavior of SparkContext.cancelJobGroups won't interrupt task and just let task finish by itself. In some case it's dangerous, e.g., data skew or exists a heavily shuffle. A task will hold in a long time after do cancel and the resource will not release.

Does this PR introduce any user-facing change?

Yes, a new config.

How was this patch tested?

Add test.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants