Skip to content

[SPARK-52533] Support enabling only driver profiler #51223

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

Closed
wants to merge 1 commit into from

Conversation

wForget
Copy link
Member

@wForget wForget commented Jun 19, 2025

What changes were proposed in this pull request?

Remove profiler executor enabled check in SparkAsyncProfiler

Why are the changes needed?

There are already profiler enabled checks in ProfilerPlugin. We should remove the redundant check in SparkAsyncProfiler to support only driver profiler enabled.

driverProfilingEnabled = sparkConf.get(PROFILER_DRIVER_ENABLED)
if (driverProfilingEnabled) {

executorProfilerEnabled = sparkConf.get(PROFILER_EXECUTOR_ENABLED)
if (executorProfilerEnabled) {

Does this PR introduce any user-facing change?

No

How was this patch tested?

minor improve

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

No

@pan3793
Copy link
Member

pan3793 commented Jun 19, 2025

Code change LGTM, but SPARK-50811 has been delivered in 4.0.0, this should be qualified as a bugfix, please create a new JIRA ticket.

@wForget wForget changed the title [SPARK-50811][FOLLOWUP] Remove profiler executor enabled check in SparkAsyncProfiler [SPARK-52533] Support enabling only driver profiler Jun 19, 2025
@wForget
Copy link
Member Author

wForget commented Jun 19, 2025

Code change LGTM, but SPARK-50811 has been delivered in 4.0.0, this should be qualified as a bugfix, please create a new JIRA ticket.

Thank you, added a new ticket SPARK-52533

@HyukjinKwon
Copy link
Member

cc @parthchandra

@wForget wForget force-pushed the SPARK-50811-followup branch from 9a6697c to 774e6f4 Compare June 24, 2025 02:06
@wForget
Copy link
Member Author

wForget commented Jun 25, 2025

Gentle ping @parthchandra @dongjoon-hyun, could you please take a look?

Copy link
Contributor

@parthchandra parthchandra left a comment

Choose a reason for hiding this comment

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

lgtm

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, @wForget , @pan3793 , @HyukjinKwon , @parthchandra .
Merged to master for Apache Spark 4.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants