Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-14915

Artifactory may send thousands of requests to access/api/v1/system/ping while waiting for Access to start up

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.6.0
    • Component/s: Access Server
    • Labels:
      None
    • Sprint:
      Leap 24

      Description

      AccessServiceImpl#waitForAccessServer is supposed to wait 500ms between two consecutive ping attempts when waiting for Access to boot up. However, the sleep is being done inside a try block and after an exception could be thrown from calling AccessClientImpl#ping. This means that if the request to 'access/api/v1/system/ping' returns a 404 or some other unexpected status code, the sleep instruction will never be executed, so essentially Artifactory will keep looping without sleeping, sending hundreds or thousands of requests depending on how long it takes for access to boot up.

        Attachments

          Activity

            People

            • Assignee:
              uriahl Uriah Levy
              Reporter:
              uriahl Uriah Levy
              Assigned QA:
              Liza Dashevski (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: