Details
Description
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.
Attachments
Issue Links
- is caused by
-
MRESOLVER-346 Too eager locking
- Closed
- links to