Skip to content

Commit

Permalink
[MRESOLVER-346] Too eager locking in resolver (s4u#272)
Browse files Browse the repository at this point in the history
The locking in resolver is too eager. This PR relaxes locking by introducing use of shared locks (not used before) and following changes:
* installer -- no change, remains exclusive locking
* deployer -- laxed to shared locking, as it only reads local repo
* Artifact and Metadata resolver -- implemented "upgrade", they are optimistic and start with shared lock (and will happily finish if local repo has all) but will "upgrade" to exclusive if remote access (hence local caching) is about to happen.

Best viewed with whitespace ignore, as there are not much change but blocks got nested.

---

https://issues.apache.org/jira/browse/MRESOLVER-346
  • Loading branch information
cstamas committed Apr 5, 2023
1 parent d0f8564 commit 4c5e9ea
Show file tree
Hide file tree
Showing 3 changed files with 393 additions and 350 deletions.
Loading

0 comments on commit 4c5e9ea

Please sign in to comment.