gnodet opened a new pull request, #12468:
URL: https://github.com/apache/maven/pull/12468

   ## Summary
   
   Backport of #12446, which fixes #12445.
   
   Cherry-pick of squash-merge commit c6de104bff92fc0c4572813bac82935470441dc4 
from `master` to `maven-4.0.x`.
   
   The fix replaces the wait/notify pattern in 
`AbstractRequestCache.requests()` with direct value setting via 
`CachingSupplier.complete()`, preventing deadlocks when re-entrant `requests()` 
calls occur (e.g., parent POM resolution during artifact resolution). It also 
adds `ThreadLocal` re-entrancy detection and `setBatchResolving()` so 
concurrent threads wait for in-progress batch results while same-thread 
re-entrant calls use a fallback supplier.
   
   Conflicts were resolved during cherry-pick (the 4.0.x branch had a 
`CyclicCacheAccessException`-based approach that was replaced by the new 
batch-resolution pattern).
   
   ## Test plan
   
   - [ ] CI passes on maven-4.0.x
   - [ ] `AbstractRequestCacheTest` passes (included in this backport)
   
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to