diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-11-29 17:08:20 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-11-29 18:18:08 +0300 |
commit | e12e200e985a41a26c401ae3109916aa45e40ac8 (patch) | |
tree | 231e6375e5ec11e4ef933fdc9fe14c0ebfaad75f | |
parent | 64b8da6a50eab85830748dcf3986bda29e8228d5 (diff) | |
download | ydb-e12e200e985a41a26c401ae3109916aa45e40ac8.tar.gz |
Intermediate changes
-rw-r--r-- | yt/yt/client/cache/rpc.cpp | 4 | ||||
-rw-r--r-- | yt/yt_proto/yt/client/cache/proto/config.proto | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/yt/yt/client/cache/rpc.cpp b/yt/yt/client/cache/rpc.cpp index e4cd222d06..933f976111 100644 --- a/yt/yt/client/cache/rpc.cpp +++ b/yt/yt/client/cache/rpc.cpp @@ -68,6 +68,10 @@ NApi::NRpcProxy::TConnectionConfigPtr GetConnectionConfig(const TConfig& config) connectionConfig->ResponseCodec = GetCompressionCodecFromProto(config.GetResponseCodec()); connectionConfig->EnableRetries = config.GetEnableRetries(); + if (config.HasEnableLegacyRpcCodecs()) { + connectionConfig->EnableLegacyRpcCodecs = config.GetEnableLegacyRpcCodecs(); + } + if (config.HasRetryBackoffTime()) { connectionConfig->RetryingChannel->RetryBackoffTime = TDuration::MilliSeconds(config.GetRetryBackoffTime()); } diff --git a/yt/yt_proto/yt/client/cache/proto/config.proto b/yt/yt_proto/yt/client/cache/proto/config.proto index a1fd076f8d..fd3d7d18eb 100644 --- a/yt/yt_proto/yt/client/cache/proto/config.proto +++ b/yt/yt_proto/yt/client/cache/proto/config.proto @@ -29,6 +29,8 @@ message TConfig optional ECompressionCodec RequestCodec = 17 [default = None]; optional ECompressionCodec ResponseCodec = 12 [default = None]; + // Should set EnableLegacyRpcCodecs=False, to enable RequestCodec & ResponseCodec: https://nda.ya.ru/t/iXCfYZjS6yNEwg + optional bool EnableLegacyRpcCodecs = 20; optional bool EnableRetries = 13; optional uint32 RetryBackoffTime = 14; |