*: enable drpc using rpc context config#161728
*: enable drpc using rpc context config#161728craig[bot] merged 7 commits intocockroachdb:masterfrom
Conversation
652dc87 to
7ab3024
Compare
shubhamdhama
left a comment
There was a problem hiding this comment.
LGTM! I have left couple of minor comments.
shubhamdhama
left a comment
There was a problem hiding this comment.
I think this PR is safe to merge as tests can ensure the correctness. Can you also randomly hand picked 2-3 tests to ensure they are indeed using DRPC (not just the test log statement, but in the cockroach logs).
Nukitt
left a comment
There was a problem hiding this comment.
@Nukitt reviewed 13 files and all commit messages, and made 1 comment.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @dhartunian, @herkolategan, @michae2, @shubhamdhama, @suj-krishnan, and @williamchoe3).
Yes, I verified this with a couple of test runs. |
Previously, drpc usage for inter-node communication was controlled by the `rpc.experimental_drpc.enabled` cluster setting. However, this setting is not available on all code paths. With the introduction of the `--use-new-rpc` CLI flag, drpc usage can be determined using rpc context config, making the cluster setting redundant. This commit updates the code paths in rpc and sql packages to use rpc context config rather than cluster setting when deciding whether to use drpc for inter-node communication. Informs: cockroachdb#155600 Epic: CRDB-55200 Release note: none
Previously, drpc usage for inter-node communication was controlled by the `rpc.experimental_drpc.enabled` cluster setting. However, this setting is not available on all code paths. With the introduction of the `--use-new-rpc` CLI flag, drpc usage can be determined using rpc context config, making the cluster setting redundant. This commit updates the code paths in rpc and server packages to use rpc context config rather than cluster setting when deciding whether to use drpc for inter-node communication. Informs: cockroachdb#155600 Epic: CRDB-55200 Release note: none
Previously, drpc usage for inter-node communication was controlled by the `rpc.experimental_drpc.enabled` cluster setting. However, this setting is not available on all code paths. With the introduction of the `--use-new-rpc` CLI flag, drpc usage can be determined using rpc context config, making the cluster setting redundant. This commit updates the code paths in server package to use rpc context config rather than cluster setting when deciding whether to use drpc for inter-node communication. Informs: cockroachdb#155600 Epic: CRDB-55200 Release note: none
Previously, drpc usage for inter-node communication was controlled by the `rpc.experimental_drpc.enabled` cluster setting. However, this setting is not available on all code paths. With the introduction of the `--use-new-rpc` CLI flag, drpc usage can be determined using rpc context config, making the cluster setting redundant. This commit updates the code paths in server and upgrade packages to use rpc context config rather than cluster setting when deciding whether to use drpc for inter-node communication. Informs: cockroachdb#155600 Epic: CRDB-55200 Release note: none
f904b54 to
f770ee3
Compare
This commit refactors the closed timestamp sender to accept a `NewSideTransportClient` function instead, which abstracts away the client creation logic. This allows the sender to remain agnostic to whether drpc or gRPC is used. Informs: cockroachdb#155600 Epic: CRDB-55200 Release note: none
Remove the `rpc.experimental_drpc.enabled` cluster setting helper function now that all call sites have been updated to use the rpc context config to enable drpc. Informs: cockroachdb#155600 Epic: CRDB-55200 Release note: none
Previously, drpc usage for inter-node communication was controlled by the `rpc.experimental_drpc.enabled` cluster setting. However, this setting is not available on all code paths. With the introduction of the `--use-new-rpc` CLI flag, roachtest has been updated to use CLI flag to enable drpc. Informs: cockroachdb#155600 Epic: CRDB-55200 Release note: none
f770ee3 to
f655191
Compare
|
bors r+ |
Previously, drpc usage for inter-node communication was controlled by the
rpc.experimental_drpc.enabledcluster setting. However, this setting is not available on all code paths.With the introduction of the
--use-new-rpcCLI flag, drpc usage can be determined using rpc context config, making the cluster setting redundant.This commit updates all code paths to use rpc context config rather than cluster setting when deciding whether to use drpc for inter-node communication and removes the cluster setting.
Informs: #155600
Epic: CRDB-55200
Release note: none