Skip to content

Conversation

@Ngone51
Copy link
Member

@Ngone51 Ngone51 commented Dec 29, 2025

What changes were proposed in this pull request?

This PR proposes to reset the task thread name to Executor task idle worker#threadId when a task completes.

Why are the changes needed?

This change provides better observablity for users and developers. Currently, when a task completes, the task thread name remains unchanged until a new task launched overrides the original name. Therefore, we can still see the specific task name from the task thread stacktrace even if the task has been completed. And this is misleading as people may mistakenly think that the task thread is actively running for some task but is idle indeed.

Does this PR introduce any user-facing change?

Yes. Users see different thread name from the executor thread dump page.

Before this change:
image (6)

After this change:

image (7)

How was this patch tested?

Manually tested (verified by Spark UI).

Was this patch authored or co-authored using generative AI tooling?

No.

Copy link
Contributor

@ivoson ivoson left a comment

Choose a reason for hiding this comment

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

LGTM, nice fix!

Copy link
Contributor

@LuciferYang LuciferYang 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 @Ngone51

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.

3 participants