You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/05/04 09:01:00 UTC

[jira] [Assigned] (MRESOLVER-177) Move pre-/post-processing of metadata from ResolveTask to DefaultMetadataResolver

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

Michael Osipov reassigned MRESOLVER-177:
----------------------------------------

    Assignee: Tamás Cservenák  (was: Michael Osipov)

> Move pre-/post-processing of metadata from ResolveTask to DefaultMetadataResolver
> ---------------------------------------------------------------------------------
>
>                 Key: MRESOLVER-177
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-177
>             Project: Maven Resolver
>          Issue Type: Task
>          Components: Resolver
>    Affects Versions: 1.6.2
>            Reporter: Michael Osipov
>            Assignee: Tamás Cservenák
>            Priority: Major
>             Fix For: 1.7.0
>
>
> Using the {{ResolveTask}} on the same metadata file from multiple repositories creates a race condition on {{resolver-status.properties}} because no worker thread is holding a lock on that file while the parent (waiting) thread holds a lock on the metadata item only.
> We don't want to introduce any synchronization in the tracking file manager because it is almost always called from within a synchronized context. Instead we are inlining (moving) the pre-/post-processing of metadata into the caller thread and will leave the sole download (safe) handling ot the {{ResolveTask}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)