Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-177

Move pre-/post-processing of metadata from ResolveTask to DefaultMetadataResolver

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3, 1.7.0
    • Component/s: Resolver
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cstamas Tamás Cservenák
                Reporter:
                michael-o Michael Osipov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: