Skip to content

Conversation

@shubhamdhama
Copy link
Contributor

@shubhamdhama shubhamdhama commented Jun 17, 2025

kv,server: extract `Cluster` service and register with DRPC server

This is a follow-up to #145195, where we extracted KVBatch from the
Internal service. Here, we do the same with Cluster. 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: #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.

server: replace `RPCClusterClient` for cluster join operation

This change replaces the direct client creation through NewInternalClient
with the gRPC adapter. See #147950 for more context. Also, since we have a
more targeted service for Join RPC, we should use its adapter interface.

Release note: none
Epic: CRDB-48923

@blathers-crl
Copy link

blathers-crl bot commented Jun 17, 2025

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.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

This is a follow-up to cockroachdb#145195, where we extracted `KVBatch` from the
`Internal` service. Here, we do the same with `Cluster`. 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
This change replaces the direct client creation through `NewInternalClient`
with the gRPC adapter. See cockroachdb#147950 for more context. Also, since we have a
more targeted service for `Join` RPC, we should use its adapter interface.

Release note: none
Epic: CRDB-48923
@shubhamdhama shubhamdhama force-pushed the register-svc-cluster branch from 900a685 to b884f97 Compare June 19, 2025 04:51
@shubhamdhama shubhamdhama marked this pull request as ready for review June 19, 2025 04:56
@shubhamdhama shubhamdhama requested review from a team as code owners June 19, 2025 04:56
Copy link
Contributor

@cthumuluru-crdb cthumuluru-crdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@shubhamdhama
Copy link
Contributor Author

bors r=cthumuluru-crdb

@craig
Copy link
Contributor

craig bot commented Jun 20, 2025

@craig craig bot merged commit eae6695 into cockroachdb:master Jun 20, 2025
31 of 32 checks passed
@shubhamdhama shubhamdhama linked an issue Jun 24, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

drpc: split and register Internal service with DRPC server

3 participants