-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
There was a problem hiding this 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
. 🤷
log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerConfigDisruptor.java
Outdated
Show resolved
Hide resolved
...-core/src/main/java/org/apache/logging/log4j/core/async/DefaultAsyncWaitStrategyFactory.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/async/RingBufferLogEventHandler4.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/async/RingBufferLogEventHandler4.java
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/async/RingBufferLogEventHandler.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerDisruptor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
log4j-core/src/main/java/org/apache/logging/log4j/core/async/RingBufferLogEventHandler4.java
Show resolved
Hide resolved
Fixes apache#1829 Signed-off-by: tomerarazy <tomerarazy@gmail.com>
An additional test run will ensure `log4j-core` works with Disruptor 4.x.
b7877be
to
461d18d
Compare
Hi @ppkarwasz, thank you for fixing this but I can't see the new version in the released notes? Or we should wait for the next 3.X version? |
@Alanoudj, this will be made available in Log4j 3 will use Disruptor 4, there Disruptor 3 is completely removed. |
Do you have any deadline for 2.23.0 version release? |
The |
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
This PR is based on #1937 and adds support for LMAX Disruptor 4.x by:
EventHandler
classes into two versions: one for 3.x and 4.x,TimeoutBlockingWaitStrategy
,Closes #1829