Skip to content

[CLI-1497, CLI-2037] Replace sync.WaitGroup with chan#1483

Merged
Brian Strauch (brianstrauch) merged 2 commits intomainfrom
fix-sso-callback
Oct 26, 2022
Merged

[CLI-1497, CLI-2037] Replace sync.WaitGroup with chan#1483
Brian Strauch (brianstrauch) merged 2 commits intomainfrom
fix-sso-callback

Conversation

@brianstrauch

Checklist

  1. [CRUCIAL] Is the change for CP or CCloud functionalities that are already live in prod?
    • yes: ok

What

sync.WaitGroup will panic when decremented twice simultaneously. This happened to two customers (that we know of) and can happen when someone takes exactly 30s to log in, or auto-login takes exactly 30s.

References

CLI-1497
CLI-2037

@brianstrauch Brian Strauch (brianstrauch) requested a review from a team as a code owner October 26, 2022 17:58
Copy link
Member

@sgagniere Steven Gagniere (sgagniere) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; nice chan-ge.

@brianstrauch Brian Strauch (brianstrauch) deleted the fix-sso-callback branch October 26, 2022 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants