Skip to content

Make LookupContext#closeables thread safe (backport to 4.0.x)#12414

Merged
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:backport/12411-closeables-thread-safe
Jul 3, 2026
Merged

Make LookupContext#closeables thread safe (backport to 4.0.x)#12414
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:backport/12411-closeables-thread-safe

Conversation

@gnodet

@gnodet gnodet commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Backport of #12411 to maven-4.0.x.

This collection is modified by multiple threads, e.g. the FastTerminal setup thread calling context.closeables.add(out::flush). This can result in closeables being lost and can make subsequent builds with the embedded runner fail.

Cherry-picked from c48ad20 (master).

This collection is modified by multiple threads, e.g. the FastTerminal
setup thread calling context.closeables.add(out::flush). This can result
in closeables being lost and can make subsequent builds with the embedded
runner fail.

Signed-off-by: Stefan Oehme <st.oehme@gmail.com>
@gnodet gnodet added bug Something isn't working backport mvn40 labels Jul 3, 2026
@gnodet gnodet added this to the 4.0.0-rc-6 milestone Jul 3, 2026
@gnodet gnodet merged commit 0046a03 into apache:maven-4.0.x Jul 3, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working mvn40

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants