Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(manager) lock client creation #2070

Merged
merged 4 commits into from
Dec 9, 2021
Merged

fix(manager) lock client creation #2070

merged 4 commits into from
Dec 9, 2021

Commits on Dec 9, 2021

  1. fix(manager) lock client creation

    Add a mutex and lock it when creating Kong admin clients. Attempting to
    create multiple workspaced clients simultaneously can result in a race
    condition where both clients check for the workspace before either
    creates it, both clients will attempt to create the workspace, and the
    second client to attempt creation will hit a unique violation.
    Travis Raines committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    779c368 View commit details
    Browse the repository at this point in the history
  2. pr: move lock within GetKongClientForWorkspace

    Travis Raines committed Dec 9, 2021
    Configuration menu
    Copy the full SHA
    b034eaa View commit details
    Browse the repository at this point in the history
  3. Merge branch 'main' into fix/client-race

    Travis Raines authored Dec 9, 2021
    Configuration menu
    Copy the full SHA
    3f1deed View commit details
    Browse the repository at this point in the history
  4. Update internal/manager/config.go

    Co-authored-by: Shane Utt <[email protected]>
    Travis Raines and shaneutt authored Dec 9, 2021
    Configuration menu
    Copy the full SHA
    0bebcac View commit details
    Browse the repository at this point in the history