Skip to content

Reopen log file when rollover is unsuccessful (#3226)#3859

Closed
jvz wants to merge 1 commit intomainfrom
fix/3.x/port-3226
Closed

Reopen log file when rollover is unsuccessful (#3226)#3859
jvz wants to merge 1 commit intomainfrom
fix/3.x/port-3226

Conversation

@jvz
Copy link
Copy Markdown
Member

@jvz jvz commented Jul 29, 2025

Fixes RollingFileManager to reopen the log file when the rollover was unsuccessful


Port of #3226.

Fixes `RollingFileManager` to reopen the log file when the rollover was unsuccessful
@jvz jvz added this to the 3.0.0-beta4 milestone Jul 29, 2025
@jvz jvz added bug Incorrect, unexpected, or unintended behavior of existing code appenders:Rolling Affects log file rolling functionality labels Jul 29, 2025
@vy
Copy link
Copy Markdown
Member

vy commented Jul 31, 2025

@jvz, RollingFileManagerTest fails, see the CI report. Would you mind first verifying these changes locally, please?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This changelog entry is not needed, please remove.

@jvz
Copy link
Copy Markdown
Member Author

jvz commented Jul 31, 2025

I had tried a plain cherry-pick for this PR from 2.x. It seems as though it doesn't apply cleanly here. May need to be rewritten.

@jvz jvz closed this Jul 31, 2025
@jvz jvz deleted the fix/3.x/port-3226 branch July 31, 2025 18:06
@ppkarwasz ppkarwasz moved this from Merged to Dropped in Log4j pull request tracker Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appenders:Rolling Affects log file rolling functionality bug Incorrect, unexpected, or unintended behavior of existing code

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants