Skip to content

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
@cstamas cstamas deleted the MRESOLVER-373-simpler branch June 20, 2023 12:52
@jira-importer
Copy link

Resolve #1046

1 similar comment
@jira-importer
Copy link

Resolve #1046

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.

3 participants