aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-02-01 14:12:25 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-02-01 14:33:50 +0300
commitdf3918fb17a1ae8b903a9b5091f7b059cb3cd4e5 (patch)
tree507d9d2ce17df31b51c985d5dc8dc46b86d57770
parentceda458ac842af463a9d520adaaa173630820099 (diff)
downloadydb-df3918fb17a1ae8b903a9b5091f7b059cb3cd4e5.tar.gz
Intermediate changes
-rw-r--r--yt/yt/client/federated/client.cpp2
-rw-r--r--yt/yt/client/federated/config.cpp3
-rw-r--r--yt/yt/client/federated/config.h3
-rw-r--r--yt/yt/client/object_client/public.h3
-rw-r--r--yt/yt/flow/lib/client/public.h2
5 files changed, 11 insertions, 2 deletions
diff --git a/yt/yt/client/federated/client.cpp b/yt/yt/client/federated/client.cpp
index a90d3245107..3fa9ca23207 100644
--- a/yt/yt/client/federated/client.cpp
+++ b/yt/yt/client/federated/client.cpp
@@ -699,7 +699,7 @@ ITransactionPtr TClient::AttachTransaction(
void TClient::HandleError(const TErrorOr<void>& error, int clientIndex)
{
- if (!NRpc::IsChannelFailureError(error)) {
+ if (!NRpc::IsChannelFailureError(error) && !Config_->RetryAnyError) {
return;
}
diff --git a/yt/yt/client/federated/config.cpp b/yt/yt/client/federated/config.cpp
index d16649672ce..edba2d190ed 100644
--- a/yt/yt/client/federated/config.cpp
+++ b/yt/yt/client/federated/config.cpp
@@ -18,6 +18,9 @@ void TFederationConfig::Register(TRegistrar registrar)
registrar.Parameter("cluster_retry_attempts", &TThis::ClusterRetryAttempts)
.GreaterThanOrEqual(0)
.Default(3);
+
+ registrar.Parameter("retry_any_error", &TThis::RetryAnyError)
+ .Default(false);
}
void TConnectionConfig::Register(TRegistrar registrar)
diff --git a/yt/yt/client/federated/config.h b/yt/yt/client/federated/config.h
index c3a67aef585..115d0450dcb 100644
--- a/yt/yt/client/federated/config.h
+++ b/yt/yt/client/federated/config.h
@@ -25,6 +25,9 @@ public:
//! Maximum number of retry attempts to make.
int ClusterRetryAttempts;
+ //! For testing purposes only. Retry any error through a different cluster.
+ bool RetryAnyError;
+
REGISTER_YSON_STRUCT(TFederationConfig);
static void Register(TRegistrar registrar);
diff --git a/yt/yt/client/object_client/public.h b/yt/yt/client/object_client/public.h
index b8a8d1ae7b9..0d774fcc806 100644
--- a/yt/yt/client/object_client/public.h
+++ b/yt/yt/client/object_client/public.h
@@ -331,6 +331,9 @@ DEFINE_ENUM(EObjectType,
// Zookeeper stuff
((ZookeeperShard) (1400))
((ZookeeperShardMap) (1401))
+
+ // Flow stuff
+ ((Pipeline) (1600))
);
//! A bit mask marking schema types.
diff --git a/yt/yt/flow/lib/client/public.h b/yt/yt/flow/lib/client/public.h
index e1812eaa08a..b194200cda4 100644
--- a/yt/yt/flow/lib/client/public.h
+++ b/yt/yt/flow/lib/client/public.h
@@ -35,7 +35,7 @@ YT_DEFINE_STRONG_TYPEDEF(TVersion, i64);
////////////////////////////////////////////////////////////////////////////////
-inline const TString PipelineFormatVersionAttribute("flow_pipeline_format_version");
+inline const TString PipelineFormatVersionAttribute("pipeline_format_version");
inline const TString LeaderControllerAddressAttribute("leader_controller_address");
constexpr int CurrentPipelineFormatVersion = 1;