-
Notifications
You must be signed in to change notification settings - Fork 167
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
Broadcaster: Don't pass a nil context into grpc call or it panics #2586
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2586 +/- ##
===================================================
+ Coverage 56.42997% 56.43266% +0.00269%
===================================================
Files 88 88
Lines 18857 18888 +31
===================================================
+ Hits 10641 10659 +18
- Misses 7637 7650 +13
Partials 579 579
Continue to review full report at Codecov.
|
It seems that explicitly marking connection as being initialized will allow to remove that rarely invoked and not covered 'rollback' code path. See my changes. Edit: looks like there were a number of race conditions in |
Thanks for review @yondonfu, all addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The refactored connection handling code seems cleaner and easier to reason about 👍 .
Before merging please update CHANGELOG_PENDING to reflect that this PR resolves the linked issue in a different way than the original PR title/description.
What does this pull request do? Explain your changes. (required)
Stops a panic in the case we detect an existing session after creating one
Specific updates (required)
context.Background()
instead ofnil
into the gRPC callHow did you test each of these updates (required)
Does this pull request close any open issues?
Fixes #2585
Checklist:
make
runs successfully./test.sh
pass