-
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
Support for com.lmax:disruptor:4 #1829
Comments
@ashr123, yes, it is sadly a known problem. See LOG4J2-3595 that was reported earlier. We would appreciate it if you can submit a PR fixing the issue. |
@vy I think it's harder to notice old Jira issues since we've migrated to GitHub Issues |
@jvz, feel free to mark the JIRA one as duplicate and re-open this one. |
Fixes apache#1829 Signed-off-by: tomerarazy <tomerarazy@gmail.com>
* Revert lmax disruptor; @see apache/logging-log4j2#1829 * Upgrade java-cfenv-boot dependency * Switch Dockerfile base image to bellsoft/liberica-openjdk-alpine:17
* revert lmax disruptor; @see apache/logging-log4j2#1829 * upgrade java-cfenv-boot
Looks like this should be pretty simple to update. The main breaking change to handle here is updating some |
We support JPMS, which prevents two different modules from having the same classes. However the differences between Disruptor 3.x and 4.x reduce themselves to having some optional classes in 3.x and we have a lot of experience dealing with optional dependencies. This issue is on my TODO list for 2.23.0 (January/February), but you can provide a PR following the guideline I provided in #1856. |
Hi @ppkarwasz
Change 1 to 2, will complete the upgrade. |
Log4j2 version: 2.22.0 |
If you do that In the |
What about moving to JDK 17 or 21? |
The baseline for Log4j 3.x is JRE 17. |
is there a chance to move Log4J 4 to JDK 21? of not, what are the considerations? |
Every version of Log4j (both 2.x and 3.x) runs on the newest Java available. By baseline I only mean the oldest supported JRE. This is a restriction only for maintainers: in the |
I've asked only because it will allow you to use the newest features of the language and maybe make it more efficient (for example by using virtual threads, switch patterns etc) |
Fixes apache#1829 Signed-off-by: tomerarazy <tomerarazy@gmail.com>
We already compile our versions with JDK 17 (targeted at JRE 8 code), so many improvements in the compiler are already present. |
Description
When I run with async logger and
com.lmax:disruptor:4
, I get the following error:Configuration
Version: 2.20.0
Operating system: MacOS 13.6
JDK: OpenJDK 21
Reproduction
Just run an Java class with the following static field:
The text was updated successfully, but these errors were encountered: