[SPARK-47578][CORE] Migrate logWarning with variables to structured logging framework#46309
[SPARK-47578][CORE] Migrate logWarning with variables to structured logging framework#46309dtenedor wants to merge 17 commits intoapache:masterfrom
Conversation
|
@gengliangwang thanks for a thorough review. I followed your instructions for every comment, and then just resolved them all to clean up the GitHub conversation history page. Please look again when ready! |
|
@dtenedor the test failure looks relevant |
|
I will look at this relevant test failure: The test failure was: |
|
@gengliangwang thanks for your review, responded to comments, please look again. |
| verbose = true) | ||
| val output = lineBuffer.mkString("\n") | ||
| assert(output.contains(RPackageUtils.RJarDoc)) | ||
| assert(output.contains("Building R package")) |
There was a problem hiding this comment.
This fix seems hacky. Is there a better fix for this one?
There was a problem hiding this comment.
You are right, this change is not too great.
I reverted the changes to RPackageUtils.scala and this file for now.
I will figure out how to get the R packages installed on my local machine and fix this file in a next step.
There was a problem hiding this comment.
Created https://issues.apache.org/jira/browse/SPARK-48122 to track it separately.
|
The two remaining test failures appear to be flaky/unrelated. |
|
Thanks, merging to master |
…ogging framework ### What changes were proposed in this pull request? Migrate logWarning with variables of the Spark Core module to structured logging framework. This transforms the logWarning entries of the following API ``` def logWarning(msg: => String): Unit ``` to ``` def logWarning(entry: LogEntry): Unit ``` ### Why are the changes needed? To enhance Apache Spark's logging system by implementing structured logging. ### Does this PR introduce _any_ user-facing change? Yes, Spark core logs will contain additional MDC ### How was this patch tested? Compiler and scala style checks, as well as code review. ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#46309 from dtenedor/spark-core-log-warn. Authored-by: Daniel Tenedorio <daniel.tenedorio@databricks.com> Signed-off-by: Gengliang Wang <gengliang@apache.org>
What changes were proposed in this pull request?
Migrate logWarning with variables of the Spark Core module to structured logging framework. This transforms the logWarning entries of the following API
to
Why are the changes needed?
To enhance Apache Spark's logging system by implementing structured logging.
Does this PR introduce any user-facing change?
Yes, Spark core logs will contain additional MDC
How was this patch tested?
Compiler and scala style checks, as well as code review.
Was this patch authored or co-authored using generative AI tooling?
No