Skip to content

Fix: make ProjectIndex thread-safe for parallel builds (backport #12832) - #12926

Merged
gnodet merged 1 commit into
maven-4.0.xfrom
backport/12832-4.0.x
Aug 30, 2026
Merged

Fix: make ProjectIndex thread-safe for parallel builds (backport #12832)#12926
gnodet merged 1 commit into
maven-4.0.xfrom
backport/12832-4.0.x

Conversation

@gnodet

@gnodet gnodet commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of #12832 to maven-4.0.x.

  • Switch ProjectIndex backing maps from HashMap to ConcurrentHashMap to fix root cause of index corruption under parallel builds (-T)
  • Add forkedProject null guard (the indices null guard was already backported via Handle missing project index in forked executions #12911)
  • Enrich error messages with diagnostic hints about parallel builds and extensions

Test plan

  • Existing MojoExecutorForkedExecutionTest covers the null-guard behavior
  • CI green

🤖 Generated with Claude Code

Backport of #12832 to maven-4.0.x. Switch ProjectIndex backing maps from
HashMap to ConcurrentHashMap to fix root cause of index corruption under
parallel builds (-T). Add forkedProject null guard and enriched error
messages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet added this to the 4.0.0-rc-7 milestone Aug 30, 2026
@gnodet gnodet added bug Something isn't working backport labels Aug 30, 2026
@gnodet
gnodet merged commit a4fcc6e into maven-4.0.x Aug 30, 2026
24 checks passed
@gnodet
gnodet deleted the backport/12832-4.0.x branch August 30, 2026 09:51
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant