-
Notifications
You must be signed in to change notification settings - Fork 3.9k
rpc: remove DRPC dependency from Peer
and Connection
generics
#148609
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
Conversation
Peer
and Connection
generics
4da8d25
to
0ee4f1e
Compare
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
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, left some comments. I'll take another look and approve it.
f879fbe
to
5e2950d
Compare
@shubhamdhama, if you have any additional comments on this PR drop a comment here and I'll address them in a separate commit. |
bors r+ |
148609: rpc: remove DRPC dependency from `Peer` and `Connection` generics r=cthumuluru-crdb a=cthumuluru-crdb Although `Peer` and `Connection` are generic and intended to support both gRPC and DRPC connections, the current implementation has a hardcoded dependency on DRPC. As a result, a DRPC connection is always dialed, regardless of the intended type. This PR removes the direct dependency on DRPC, allowing the appropriate connection type (gRPC or DRPC) to be used based on the generic parameter. Epic: CRDB-48923 Fixes: none Release note: none Co-authored-by: Chandra Thumuluru <chandra.thumuluru@cockroachlabs.com>
This is a follow-up to cockroachdb#145195, where we extracted KVBatch from the Internal service. Here, we do the same with RangeFeed. The TL;DR is that smaller services are easier to maintain and can be more smoothly migrated to DRPC. We also enable this service on the DRPC server. This is controlled by `rpc.experimental_drpc.enabled` (off by default). This change is part of a series and is similar to: cockroachdb#146926 Note: This only registers the service; the client is not updated to use the DRPC client, so this service will not have any functional effect. Epic: CRDB-48925 Release note: None
Although `Peer` and `Connection` are generic and intended to support both gRPC and DRPC connections, the current implementation has a hardcoded dependency on DRPC. As a result, a DRPC connection is always dialed, regardless of the intended type. This PR removes the direct dependency on DRPC, allowing the appropriate connection type (gRPC or DRPC) to be used based on the generic parameter. Epic: CRDB-48923 Fixes: none Release note: none
5e2950d
to
5be50d0
Compare
Canceled. |
bors r+ |
Although
Peer
andConnection
are generic and intended to support both gRPC and DRPC connections, the current implementation has a hardcoded dependency on DRPC. As a result, a DRPC connection is always dialed, regardless of the intended type. This PR removes the direct dependency on DRPC, allowing the appropriate connection type (gRPC or DRPC) to be used based on the generic parameter.Epic: CRDB-48923
Fixes: none
Release note: none