Skip to content

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

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

Fix #1342: avoid shared include/exclude filters in parallel dependency updates#1351
slachiewicz merged 1 commit intomasterfrom
1342-arrayindexoutofboundsexception-in-patternincludesartifactfilter-with-parallel-metadata-downloads-version-2210

Conversation

@slachiewicz
Copy link
Copy Markdown
Member

@slachiewicz slachiewicz commented Mar 22, 2026

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
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

@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 label Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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