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

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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.2
    • 1.6.3, 1.7.0
    • Resolver
    • 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

              cstamas Tamas Cservenak
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: