-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
rpc_util: Fix RecvBufferPool
deactivation issues
#6766
Conversation
- Resolved unintended deactivation scenarios: - During unary RPC calls. - When compression is enabled. - Also corrected missing `payInfo.uncompressedBytes` in `Server.processUnaryRPC`.
This PR will fix #6578. |
RecvBufferPool
deactivation issuesRecvBufferPool
deactivation issues
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.
Thanks for the contribution, overall this LGTM, super minor style nits.
|
||
const bufferCount = reqCount * 2 // req + resp | ||
if len(pool.puts) != bufferCount { | ||
t.Fatalf("Expected 10 buffers to be returned to the pool, got %d", len(pool.puts)) |
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.
bufferCount is 20. Should this say 20?
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.
Yes, and it's exactly twice the reqCount.
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.
Right, but the error message says 10 :). Switch to 20?
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.
Last one before merging :)
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.
Right, but the error message says 10 :). Switch to 20?
Got it! 389c89e
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.
Thanks :)!
I'm going to go ahead and approve this, I'm going to be out the next few weeks so once you get to my minor nits one of my teammates can merge this. |
Fixes #6578
Resolved unintended deactivation scenarios:
Also corrected missing
payInfo.uncompressedBytes
inServer.processUnaryRPC
.RELEASE NOTES: none