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

Resolver while collecting may end up in busy loop without any possibility to be stopped

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-alpha-3, 2.0.0
    • Resolver
    • None

    Description

      As reported by users, under some conditions (MRESOLVER-316) resolver is able to spin itself into busy loop, without possibility to stop it (ie. by interrupting the thread of it).

      Example report: https://github.com/apache/maven-resolver/pull/236

      The reproducer (until MRESOLVER-316 is fixed) is present in PR above (the demo code and the diff for it).

      While the PR proposes a code change, that is not covering all, as in case of MRESOLVER-316 bug, the endless loop happens in visitor bit (DependencyVisitor visiting DependencyNodes).

      Solutiom: make collector but also visitor sense thread interruption.

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              cstamas Tamas Cservenak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: