Skip to content

Fix #1342: avoid shared include/exclude filters in parallel dependency updates - #1351

Merged
slachiewicz merged 1 commit into
masterfrom
1342-arrayindexoutofboundsexception-in-patternincludesartifactfilter-with-parallel-metadata-downloads-version-2210
Apr 3, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
1342-arrayindexoutofboundsexception-in-patternincludesartifactfilter-with-parallel-metadata-downloads-version-2210

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Mar 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • make include/exclude artifact filters instance-local instead of sharing mutable arrays across threads
  • initialize pattern filters per operation to avoid cross-thread state corruption during parallel metadata downloads
  • add regression test coverage in SeparatePatternsForIncludesAnExcludesTest

Testing

  • mvn -pl versions-maven-plugin -Dtest=SeparatePatternsForIncludesAnExcludesTest test (passed)

Fixes #1342 by avoiding shared include/exclude filter state that caused AIOOBE during parallel metadata downloads.
@slachiewicz
slachiewicz merged commit a446b6f into master Apr 3, 2026
20 checks passed
@slachiewicz
slachiewicz deleted the 1342-arrayindexoutofboundsexception-in-patternincludesartifactfilter-with-parallel-metadata-downloads-version-2210 branch April 3, 2026 15:30
@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown

@slachiewicz Please assign appropriate label to PR according to the type of change.

@github-actions github-actions Bot added this to the 2.21.1 milestone Apr 3, 2026
@slachiewicz slachiewicz added the bug Something isn't working label Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ArrayIndexOutOfBoundsException in PatternIncludesArtifactFilter with parallel metadata downloads (version 2.21.0)

2 participants