This is an automated email from the ASF dual-hosted git repository.
wenchen pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.5 by this push:
new f57af38c87e3 [SPARK-47910][CORE][3.5][FOLLOWUP] Remove the use of MDC
f57af38c87e3 is described below
commit f57af38c87e3c187204a50b6cd58d71141099b91
Author: JacobZheng0927 <[email protected]>
AuthorDate: Wed Jun 19 17:10:08 2024 +0800
[SPARK-47910][CORE][3.5][FOLLOWUP] Remove the use of MDC
### What changes were proposed in this pull request?
The pull request https://github.com/apache/spark/pull/46131 was merged into
the 3.5 branch. The log output in this PR uses MDC, which is not yet supported
in version 3.5.
### Why are the changes needed?
Remove the use of MDC.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
No need.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #47022 from JacobZheng0927/SPARK-47910-3.5.
Authored-by: JacobZheng0927 <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
---
.../main/scala/org/apache/spark/storage/DiskBlockObjectWriter.scala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/core/src/main/scala/org/apache/spark/storage/DiskBlockObjectWriter.scala
b/core/src/main/scala/org/apache/spark/storage/DiskBlockObjectWriter.scala
index 5110870b4fac..ebc10300ef47 100644
--- a/core/src/main/scala/org/apache/spark/storage/DiskBlockObjectWriter.scala
+++ b/core/src/main/scala/org/apache/spark/storage/DiskBlockObjectWriter.scala
@@ -192,8 +192,7 @@ private[spark] class DiskBlockObjectWriter(
}
} catch {
case e: IOException =>
- logInfo(log"Exception occurred while closing the output stream" +
- log"${MDC(ERROR, e.getMessage)}")
+ logInfo("Exception occurred while closing the output stream: " +
e.getMessage)
} finally {
if (initialized) {
Utils.tryWithSafeFinally {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]