Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRESOLVER-373] Make GavNameResolver to distinguish names better #303

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Jun 20, 2023

This class currently gives away same names for artifact and metadata locks, that causes MRESOLVER-373 where artifact and metadata resolver together attempt illegal "lock upgrade", as both operate on same named lock.

This is wrong, as all other name mappers distinguish among them, also in case of snapshots, there are cases when shared lock is enough for artifact but metadata MAY need refresh, hence exclusive.

Important note: changing "naming" implies, that Maven carrying resolver with this change will be UNABLE to properly "share" local repository with older Mavens (so if this gets into Maven 3.9.3, it will properly share local repository other Maven 3.9.3+ instances, but not with 3.9.2, 3.9.1 or 3.9.0!)


https://issues.apache.org/jira/browse/MRESOLVER-373

This class currently gives away same names for artifact and
metadata locks, that causes MRESOLVER-373 where artifact and
metadata resolver together attempt illegal "lock upgrade",
as both operate on same named lock.

This is wrong, as all other name mappers distinguish among them,
also in case of snapshots, there are cases when shared lock
is enough for artifact but metadata MAY need refresh, hence
exclusive.
@cstamas cstamas self-assigned this Jun 20, 2023
@cstamas cstamas added this to the 1.9.13 milestone Jun 20, 2023
@cstamas cstamas merged commit 4fb1cf9 into apache:master Jun 20, 2023
7 checks passed
@cstamas cstamas deleted the MRESOLVER-373-simpler branch June 20, 2023 12:52
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.

2 participants