This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
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.
feat: dynamic channel pool scaled by number of outstanding request #1569
feat: dynamic channel pool scaled by number of outstanding request #1569
Changes from 24 commits
158b06d
7e02e4a
50735bd
3a501e0
321eb63
2e00f63
6cb0964
ec33d83
8be5066
8f6e39e
c93daf4
a386cf2
9dfa4e9
0062b0f
cc0b507
7bf8b6d
4858e76
d2d7830
464bb13
4ebbebe
7cc62d0
5f65a37
10c0cf0
71f102e
3381e9e
774d4ca
71d177b
d82c6b8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I see by default
getMinRpcsPerChannel()
returns 0, so we are diving by 0. That doesn't fail, but the result isactualOutstandingRpcs
== 0, thenmaxChannel
is 0.actualOutstandingRpcs
!= 0, then it's 2147483647.This is still OK, since you're bounding
maxChannels
below. However, the division-by-0 computation is not trivial to verify and the computation result of 2147483647 seems atypical. The code gives the impression that the author probably failed to anticipate possible division by 0. At least I want to add a comment like "getMinRpcsPerChannel() can return 0, but division by 0 shouldn't cause a problem."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!