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

Add support for LMAX Disruptor 4.x #2112

Merged
merged 9 commits into from
Dec 27, 2023

Conversation

ppkarwasz
Copy link
Contributor

This PR is based on #1937 and adds support for LMAX Disruptor 4.x by:

  • splitting our EventHandler classes into two versions: one for 3.x and 4.x,
  • using the original TimeoutBlockingWaitStrategy,
  • adding an additional Maven Surefire run to test our async logger implementation with Disruptor 4.x.

Closes #1829

@ppkarwasz ppkarwasz requested review from vy and jvz December 19, 2023 22:27
Copy link
Member

@vy vy left a comment

Choose a reason for hiding this comment

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

Great job! 💯
Yet another nail in the coffin of 3.0.0. 🤷

ppkarwasz added a commit to ppkarwasz/logging-log4j2 that referenced this pull request Dec 20, 2023
Copy link
Member

@vy vy left a comment

Choose a reason for hiding this comment

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

I guess the only left over is a Maven profile for helping dependabot to update the Disruptor 4 dependency.

@ppkarwasz ppkarwasz merged commit 461d18d into apache:2.x Dec 27, 2023
7 checks passed
@ppkarwasz ppkarwasz deleted the lmax-disruptor-4-0-0 branch December 27, 2023 19:24
@Alanoudj
Copy link

Hi @ppkarwasz, thank you for fixing this but I can't see the new version in the released notes?
https://logging.apache.org/log4j/2.x/release-notes.html

Or we should wait for the next 3.X version?

@vy vy added this to the 2.23.0 milestone Jan 23, 2024
@vy
Copy link
Member

vy commented Jan 23, 2024

@Alanoudj, this will be made available in 2.23.0.

Log4j 3 will use Disruptor 4, there Disruptor 3 is completely removed.

@Alanoudj
Copy link

Do you have any deadline for 2.23.0 version release?

@ppkarwasz
Copy link
Contributor Author

@Alanoudj,

The log4j-api version 2.23.0 artifact will be used by both Log4j Core 2.23.0 and Log4j Core 3.0.0-beta2, so the ETA for 2.23.0 is around end of February.

jackshirazi added a commit to jackshirazi/logging-log4j2 that referenced this pull request Jul 25, 2024
During startup with an agent, the resulting object can be in the wrong classloader leading to a ClassCastException. Catching that falls back to the old behaviour which works fine

The new behaviour was introduced in 2.23.0 with apache#2112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for com.lmax:disruptor:4
4 participants