-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
grpc: support channel idleness #6263
Merged
Merged
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
bb51629
grpc: support channel idleness
easwars 968a05f
call cc.Connect only when IDLE at blocking dial time
easwars fe30e55
support an atomic idleness manager
easwars 1693446
align 64-bit fields for proper atomic access
easwars 0b2a531
make vet happy
easwars 87ae17b
implement Doug's suggestion
easwars 32875a1
minor fix + access timer under lock
easwars 5c6910e
also check acitivty in tryEnterIdleMode
easwars fa1a004
skip error log when calls count is negative in onCallEnd
easwars 2b04a5b
create and destroy resolver wrapper instead of supporting idleness in it
easwars 0748ab4
start channel in idle, and kick it out of idle at the end of Dial
easwars 93c990e
review comments + remove mutexIdlenessManager
easwars a0eaa5c
reset ccb.curBalancerName when exiting idle
easwars 37c286a
remove the mutex idleness manager from tests
easwars 0682572
todo to switch balancer/picker wrappers to the same approach as resol…
easwars 460400c
remove unused consts
easwars f13ba8a
reset ccb.curBalancerName when entering idle instead of when exiting …
easwars 2068ba0
refactor new idleness manager to hide implementation details
easwars d69513f
defer the call to onCallEnd()
easwars f1f091a
test cleanups
easwars f94f923
handle small flake by trying the RPC more frequently
easwars File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Would it be better to do this when entering idle instead of exiting?
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.
Done.