Skip to content

Another merge of 3.1 to 4.x#6103

Merged
dmatej merged 13 commits into
eclipse-ee4j:4.xfrom
dmatej:sync4x
Jul 20, 2026
Merged

Another merge of 3.1 to 4.x#6103
dmatej merged 13 commits into
eclipse-ee4j:4.xfrom
dmatej:sync4x

Conversation

@dmatej

@dmatej dmatej commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Local execution:

mvn clean install
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  33:58 min
[INFO] Finished at: 2026-07-19T23:12:32+02:00
[INFO] ------------------------------------------------------------------------

dmatej@dmatej-tux:~/work/repo/git/jersey$ mvn -version
Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5)
Maven home: /home/dmatej/work/apache-maven-3.9.16
Java version: 25, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/jdk-25+36
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.17.0-122035-tuxedo", arch: "amd64", family: "unix"

Why I hurried with this PR - 4.x has more tests than 3.1, so I wanted to see if these fixes will pass all of them.

However on CI there was yet some exception related to HK2, so I also updated the milestone to 4.0.1, see changes:
https://github.com/eclipse-ee4j/glassfish-hk2/releases/tag/4.0.1
https://github.com/eclipse-ee4j/glassfish-hk2/releases/tag/4.0.0 , more exactly eclipse-ee4j/glassfish-hk2@4.0.0-M3-RELEASE...4.0.0

OndroMih and others added 12 commits June 9, 2026 00:27
* Fix memory leak

beanManager was set to threadLocal from a configurator that was post-init 
after the ComponentProvider configurator which is supposed to free the thread local. The beanManager  thread local was never removed afterwards.
I switched the order of calling post-init so that configurators go in reversed order compared to calling init

* Fix memory leak - fix failing tests

Revert the change to run postInit on all configurators in reversed order. Instead run postInit only on the specific Component configurator last, while initialize runs in the original order. This cleans up thread locals safely, without changing the order of other configurators, which was breking other functionality.
…6-3.1-fix-memory-leak

Fix memory leak (port to 3.1)
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- Is be visible in test logs

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
…cessing

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- The original test was created by guerrillakg, and was squashed and further
  updated by David Matejcek.
- Both users signed ECA.

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
# By David Matějček (6) and others
# Via GitHub (3) and David Matějček (1)
* eclipse/3.1:
  Removed supplier from log
  Added test from PR eclipse-ee4j#6086
  Removed redundant surefire plugin without a version from helidon3-client
  Removed CompletedAsyncContextListener which redundantly completed processing
  Added logging of the redundant completition
  New test for AsyncContextDelegateProviderImpl
  Fixed schemaLocation for poms
  Fix memory leak (eclipse-ee4j#6075)

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
@dmatej dmatej added this to the 4.0.3 milestone Jul 19, 2026
@dmatej
dmatej requested a review from a team July 19, 2026 21:36
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
@dmatej

dmatej commented Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

Local result with the HK2 update:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  34:03 min
[INFO] Finished at: 2026-07-20T00:28:34+02:00
[INFO] ------------------------------------------------------------------------

@jbescos jbescos left a comment

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.

LGTM

@dmatej
dmatej merged commit 4eacc03 into eclipse-ee4j:4.x Jul 20, 2026
7 checks passed
@dmatej
dmatej deleted the sync4x branch July 20, 2026 07:04
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.

4 participants