You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2023/04/21 13:32:00 UTC

[jira] [Updated] (MRESOLVER-352) Duplicate METADATA_DOWNLOADING event is being sent

     [ https://issues.apache.org/jira/browse/MRESOLVER-352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamas Cservenak updated MRESOLVER-352:
--------------------------------------
    Fix Version/s: 1.9.9

> Duplicate METADATA_DOWNLOADING event is being sent
> --------------------------------------------------
>
>                 Key: MRESOLVER-352
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-352
>             Project: Maven Resolver
>          Issue Type: Bug
>          Components: Resolver
>    Affects Versions: 1.9.8
>         Environment: Maven 3.9.2-SANPSHOT, Maven 4.0.0-SNAPSHOT, linux, windows, macos
>            Reporter: Alexey Venderov
>            Priority: Major
>             Fix For: 1.9.9
>
>
> When using Maven 3.9.2-SNAPSHOT and Maven 4.0.0-SNAPSHOT we've noticed that the METADATA_DOWNLOADING event is being sent twice for the same metadata file + repository pair. And there is only one METADATA_DOWNLOADED event that corresponds to the second METADATA_DOWNLOADING event. The duplicated event might break event consumers that try to track downloads using METADATA_DOWNLOADING/METADATA_DOWNLOADED event pairs.
> The regression was introduced in this PR https://github.com/apache/maven-resolver/commit/4c5e9ea98f8815c6df8bf26baa9032c8d9cd5f2d. When the lock "upgrade" is happening there is a second pass through the resolution logic that leads to the duplicate event. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)