Skip to content

Comments

[SPARK-37717][SQL] Improve logging in BroadcastExchangeExec#34990

Closed
ekoifman wants to merge 1 commit intoapache:masterfrom
ekoifman:SPARK-37717-Improve-logging-in-BroadcastExchangeExec
Closed

[SPARK-37717][SQL] Improve logging in BroadcastExchangeExec#34990
ekoifman wants to merge 1 commit intoapache:masterfrom
ekoifman:SPARK-37717-Improve-logging-in-BroadcastExchangeExec

Conversation

@ekoifman
Copy link
Contributor

What changes were proposed in this pull request?

The logging and errors from inside

override lazy val relationFuture: Future[broadcast.Broadcast[Any]] = { SQLExecution.withThreadLocalCaptured[broadcast.Broadcast[Any]]( session, BroadcastExchangeExec.executionContext) { try { ..... }
are hard to relate to the right join in a plan with lost of Broadcast joins.
Spark UI displays

BroadcastExchangeExec.runId

but it's not in the logs.

Why are the changes needed?

Does this PR introduce any user-facing change?

Logs will now look like
2021-11-13 21:14:59,028 INFO [broadcast-exchange-6-e20800a6-5204-40c5-82d8-40662affc244] [tenant:] [app: ] [appID:application_1627787411812_5950609] [executor:driver] [cid: ] [prid: ] TaskMemoryManager: org.apache.spark.memory.TaskMemoryManager.acquireExecutionMemory(TaskMemoryManager.java:238) - null (TID 0) acquired 16.0 KiB for org.apache.spark.unsafe.map.BytesToBytesMap@33bfacf0

instead of

2021-11-13 21:14:59,028 INFO [broadcast-exchange-6] [tenant:] [app: ] [appID:application_1627787411812_5950609] [executor:driver] [cid: ] [prid: ] TaskMemoryManager: org.apache.spark.memory.TaskMemoryManager.acquireExecutionMemory(TaskMemoryManager.java:238) - null (TID 0) acquired 16.0 KiB for org.apache.spark.unsafe.map.BytesToBytesMap@33bfacf0

How was this patch tested?

Existing tests

@github-actions github-actions bot added the SQL label Dec 23, 2021
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@weixiuli
Copy link
Contributor

@ekoifman please update the pr title [SQL][SPARK-37717] ->[SPARK-37717][SQL].

@ekoifman ekoifman changed the title [SQL][SPARK-37717] Improve logging in BroadcastExchangeExec [SPARK-37717][SQL] Improve logging in BroadcastExchangeExec Dec 24, 2021
@github-actions
Copy link

github-actions bot commented Apr 4, 2022

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Apr 4, 2022
@github-actions github-actions bot closed this Apr 5, 2022
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