Skip to content

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

Open
slachiewicz wants to merge 1 commit intomasterfrom
1342-arrayindexoutofboundsexception-in-patternincludesartifactfilter-with-parallel-metadata-downloads-version-2210
Open

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

Conversation

@slachiewicz
Copy link
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.
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.

ArrayIndexOutOfBoundsException in PatternIncludesArtifactFilter with parallel metadata downloads (version 2.21.0)

1 participant