Skip to content
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

[SPARK-51367][BUILD] Upgrade slf4j to 2.0.17 #50115

Closed
wants to merge 2 commits into from

Conversation

LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Feb 28, 2025

What changes were proposed in this pull request?

This pr aims to upgrade slf4j from 2.0.16 to 2.0.17.

Why are the changes needed?

The new version brings some bug fixes, like:

The full release notes as follows:

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GitHub Actions

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

No

@LuciferYang LuciferYang marked this pull request as draft February 28, 2025 10:00
@github-actions github-actions bot added the BUILD label Feb 28, 2025
@LuciferYang LuciferYang changed the title [BUILD] Test slf4j 2.0.17 [SPARK-51367][BUILD] Upgrade Slf4j to 2.0.17 Mar 3, 2025
@LuciferYang LuciferYang changed the title [SPARK-51367][BUILD] Upgrade Slf4j to 2.0.17 [SPARK-51367][BUILD] Upgrade slf4j to 2.0.17 Mar 3, 2025
@LuciferYang LuciferYang marked this pull request as ready for review March 3, 2025 06:21
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, @LuciferYang .
Merged to master.

@LuciferYang
Copy link
Contributor Author

Thank you @dongjoon-hyun

Pajaraja pushed a commit to Pajaraja/spark that referenced this pull request Mar 6, 2025
### What changes were proposed in this pull request?
This pr aims to upgrade slf4j from 2.0.16 to 2.0.17.

### Why are the changes needed?
The new version brings some bug fixes, like:

- As reported in qos-ch/slf4j#450, in some rare cases where MDC could be initialized before LoggerFactory. Thus, MDC would be stuck using the wrong MDCAdapter instance. To fix this issue LoggerFactory and MDC have been modified. Implementations of SLF4JServiceProvider are encouraged to initialize their mdcAdapter and markerFactory fields as early as possible, preferably at construction time. Note that these changes are transparent to existing logging backends which will continue to work as is.

- Fixed incorrect interpretation of Level.OFF and Level.ALL in SLF4JPlatformLogger by mapping Level.OFF as Level.ERROR and Level.ALL as Level.TRACE. This issue was reported in qos-ch/slf4j#430 by Peter Halicky.

The full release notes as follows:
- https://github.com/qos-ch/slf4j/releases/tag/v_2.0.17

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass GitHub Actions

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

Closes apache#50115 from LuciferYang/slf4j-2.0.17.

Lead-authored-by: yangjie01 <[email protected]>
Co-authored-by: YangJie <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
anoopj pushed a commit to anoopj/spark that referenced this pull request Mar 15, 2025
### What changes were proposed in this pull request?
This pr aims to upgrade slf4j from 2.0.16 to 2.0.17.

### Why are the changes needed?
The new version brings some bug fixes, like:

- As reported in qos-ch/slf4j#450, in some rare cases where MDC could be initialized before LoggerFactory. Thus, MDC would be stuck using the wrong MDCAdapter instance. To fix this issue LoggerFactory and MDC have been modified. Implementations of SLF4JServiceProvider are encouraged to initialize their mdcAdapter and markerFactory fields as early as possible, preferably at construction time. Note that these changes are transparent to existing logging backends which will continue to work as is.

- Fixed incorrect interpretation of Level.OFF and Level.ALL in SLF4JPlatformLogger by mapping Level.OFF as Level.ERROR and Level.ALL as Level.TRACE. This issue was reported in qos-ch/slf4j#430 by Peter Halicky.

The full release notes as follows:
- https://github.com/qos-ch/slf4j/releases/tag/v_2.0.17

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass GitHub Actions

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

Closes apache#50115 from LuciferYang/slf4j-2.0.17.

Lead-authored-by: yangjie01 <[email protected]>
Co-authored-by: YangJie <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants