Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-391

Race condition when service is been created using REST API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2 ER2
    • 2.1 CR1
    • System

      When we ran our tests, we discovered race condition. The proxy configuration can be updated before the *service token* is generated.

      This will cause that the *Apicast* will return Authentication failed when we provide correct credentials.

      Right now we solved this problem by sleep for 2.5 sec, but sleeps are not reliable.

      It would be great to have either some way to check, whether the token has been created or to somehow synchronize the API calls.

      We already discussed this problem with mikz, so he could provide some more technical information.

        1. backend_log.png
          148 kB
          Peter Stanko
        2. gateway_log.png
          303 kB
          Peter Stanko

            Unassigned Unassigned
            pstanko@redhat.com Peter Stanko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: