[
https://issues.apache.org/jira/browse/SPARK-58922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18106430#comment-18106430
]
Uroš Bojanić commented on SPARK-58922:
--------------------------------------
In progress: https://github.com/apache/spark/pull/58181.
> Extract a null/empty MDC-array check in SparkLogger
> ---------------------------------------------------
>
> Key: SPARK-58922
> URL: https://issues.apache.org/jira/browse/SPARK-58922
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 4.3.0
> Reporter: Uroš Bojanić
> Priority: Major
> Labels: pull-request-available
>
> SparkLogger duplicates the check 'mdcs == null || mdcs.length == 0' across
> six logging methods (the MDC-varargs error/warn/info overloads). This
> extracts a private isNullOrEmpty(MDC[]) helper and routes the six call sites
> through it. No behavior change.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]