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

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: