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

[SPARK-35303][SPARK-35498][PYTHON][FOLLOW-UP] Copy local properties when starting the thread, and use inheritable thread in the current codebase #32962

Closed

Conversation

HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Jun 18, 2021

What changes were proposed in this pull request?

This PR is a followup of #32429 and #32644.
I was thinking about creating separate PRs but decided to include all in this PR because it shares the same context, and should be easier to review together.

This PR includes:

Why are the changes needed?

To mimic the JVM behaviour about thread lifecycle

Does this PR introduce any user-facing change?

Ideally no. One possible case is that users use InheritableThread with pinned thread mode enabled.
In this case, the local properties will be copied when starting the thread instead of defining the InheritableThread object.
This is a small difference that wouldn't likely affect end users.

How was this patch tested?

Existing tests should cover this.

@SparkQA

This comment has been minimized.

@HyukjinKwon HyukjinKwon force-pushed the SPARK-35498-SPARK-35303 branch from cb8264f to d7bfcd8 Compare June 18, 2021 08:35
@SparkQA

This comment has been minimized.

@SparkQA

This comment has been minimized.

@SparkQA

This comment has been minimized.

@SparkQA

This comment has been minimized.

@SparkQA

This comment has been minimized.

@HyukjinKwon HyukjinKwon force-pushed the SPARK-35498-SPARK-35303 branch from d7bfcd8 to 8e7a838 Compare June 18, 2021 10:31
@HyukjinKwon HyukjinKwon changed the title [SPARK-35303][SPARK-35498][PYTHON][FOLLOW-UP] Refactor inheritable thread logic, and use it in codebase for pinned thread mode [SPARK-35303][SPARK-35498][PYTHON][FOLLOW-UP] Copy local properties when starting the thread, and use inheritable thread in the current codebase Jun 18, 2021
@SparkQA

This comment has been minimized.

@SparkQA

This comment has been minimized.

@HyukjinKwon HyukjinKwon force-pushed the SPARK-35498-SPARK-35303 branch from 8e7a838 to be9dd5e Compare June 18, 2021 13:32
@SparkQA
Copy link

SparkQA commented Jun 18, 2021

Test build #139992 has finished for PR 32962 at commit be9dd5e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jun 18, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44519/

@SparkQA
Copy link

SparkQA commented Jun 18, 2021

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44519/

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @HyukjinKwon !

@HyukjinKwon
Copy link
Member Author

Thanks, @dongjoon-hyun.

Merged to master.

@HyukjinKwon HyukjinKwon deleted the SPARK-35498-SPARK-35303 branch January 4, 2022 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants