Skip to content

Conversation

ppkarwasz
Copy link
Contributor

Log4j Core added support for Disruptor 4 in 2.23.0 (see #1829), but we forgot to update the OSGi metadata to allow Disruptor 4 in that environment.

This PR expands the accepted Disruptor version range in the OSGi descriptor to [3.4,5), which partially addresses #3706.

I've also added a small test to try and reproduce the issue from #3706 (where Disruptor version 3 is misidentified as Disruptor 4), and to confirm that async logging works in an OSGi setup. Unfortunately, we couldn't reproduce the bug in our test environment—so that part still needs investigation. However, the version range issue is separate and should now be resolved by this change.

Log4j Core added support for Disruptor 4 in `2.23.0` (see #1829), but we forgot to update the OSGi metadata to allow Disruptor 4 in that environment.

This PR expands the accepted Disruptor version range in the OSGi descriptor to ``[3.4,5)``, which partially addresses #3706.

I've also added a small test to try and reproduce the issue from #3706 (where Disruptor version 3 is misidentified as Disruptor 4), and to confirm that async logging works in an OSGi setup. Unfortunately, we couldn't reproduce the bug in our test environment—so that part still needs investigation. However, the version range issue is separate and should now be resolved by this change.
@ppkarwasz ppkarwasz enabled auto-merge (squash) June 3, 2025 07:15
@ppkarwasz ppkarwasz added this to the 2.25.0 milestone Jun 3, 2025
@ppkarwasz ppkarwasz merged commit 69b3058 into 2.x Jun 3, 2025
7 checks passed
@ppkarwasz ppkarwasz deleted the fix/2.x/3706_osgi-disruptor branch June 3, 2025 07:27
@github-project-automation github-project-automation bot moved this from To triage to Done in Log4j bug tracker Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants