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:06:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17338857#comment-17338857 ]
Michael Osipov commented on MRESOLVER-177:
------------------------------------------
Fixed with [01ebbe52c6dc5552649a1d633b6ac32c223ed60f|https://gitbox.apache.org/repos/asf?p=maven-resolver.git&a=commit&h=01ebbe52c6dc5552649a1d633b6ac32c223ed60f] on master.
> 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.6.3, 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)