Skip to content

Issue 1445 - Fix RollingFileManager and FileRenameAction #1549

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

Conversation

thisdudeiknew
Copy link
Contributor

@thisdudeiknew thisdudeiknew commented Jul 11, 2023

Fixes #1445.
Fix RollingFileManager and FileRenameAction to correctly propagate synchronous action failures

Checklist

  • Base your changes on 2.x branch if you are targeting Log4j 2; use main otherwise
  • ./mvnw verify succeeds (if it fails due to code formatting issues reported by Spotless, simply run ./mvnw spotless:apply and retry)
  • Non-trivial changes contain an entry file in the src/changelog/.2.x.x directory
  • Tests for the changes are provided
  • Commits are signed (optional, but highly recommended)

@thisdudeiknew thisdudeiknew force-pushed the issue-1445-propogate-rolling-file-manager-success-correctly branch from 62a2e17 to ef1ddcd Compare July 11, 2023 18:04
@thisdudeiknew thisdudeiknew changed the title Fix RollingFileManager and FileRenameAction to correctly propagate sy… Issue 1445 - Fix RollingFileManager and FileRenameAction Jul 11, 2023
@thisdudeiknew
Copy link
Contributor Author

Is someone available to help me diagnose the Ubuntu build failure?

@ppkarwasz ppkarwasz self-assigned this Jul 12, 2023
@ppkarwasz
Copy link
Contributor

@thisdudeiknew: it's a flaky test.

@ppkarwasz ppkarwasz added this to the 2.20.1 milestone Jul 13, 2023
@vy vy added the bug Incorrect, unexpected, or unintended behavior of existing code label Oct 5, 2023
@vy
Copy link
Member

vy commented Oct 5, 2023

Thanks so much for the fix @thisdudeiknew, much appreciated! 🙇 Merging it...

@vy vy merged commit 3bc608d into apache:2.x Oct 5, 2023
Copy link
Contributor

@ppkarwasz ppkarwasz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thisdudeiknew thisdudeiknew deleted the issue-1445-propogate-rolling-file-manager-success-correctly branch October 5, 2023 13:15
ppkarwasz pushed a commit that referenced this pull request Oct 5, 2023
vy pushed a commit that referenced this pull request Oct 6, 2023
vy added a commit that referenced this pull request Oct 6, 2023
LuciferYang added a commit to apache/spark that referenced this pull request Oct 23, 2023
### What changes were proposed in this pull request?
This pr aims upgrade log4j from 2.20.0 to 2.21.0.

### Why are the changes needed?
Support for the zstd compression algorithm has been added in the new version: apache/logging-log4j2#1508 | apache/logging-log4j2#1514
Meanwhile, the new version starts to use Java 11 for building, and the runtime version is still compatible with Java 8: apache/logging-log4j2#1369
The new version also brings some bug fixes, such as:
- Fixed logging of java.sql.Date objects by appending it before Log4J tries to call java.util.Date.toInstant() on it: apache/logging-log4j2#1366
- Fixed concurrent date-time formatting issue in PatternLayout: apache/logging-log4j2#1485
- Fixed buffer size in Log4jFixedFormatter date time formatter: apache/logging-log4j2#1418
- Fixed the propagation of synchronous action failures in RollingFileManager and FileRenameAction: apache/logging-log4j2#1445 | apache/logging-log4j2#1549
- Fixed RollingFileManager to propagate failed synchronous actions correctly: apache/logging-log4j2#1445
and more.

The complete release note is as follows:
- https://github.com/apache/logging-log4j2/releases/tag/rel%2F2.21.0

### 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 #43478 from LuciferYang/SPARK-45625.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
ppkarwasz pushed a commit that referenced this pull request Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect, unexpected, or unintended behavior of existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exceptions are ignored even with ignoreExceptions="false" when booting
3 participants