aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhcpp <hcpp@yandex-team.ru>2022-04-26 15:11:21 +0300
committerhcpp <hcpp@yandex-team.ru>2022-04-26 15:11:21 +0300
commit6f9656a9e6881848cd7e4372214c215352309f1b (patch)
tree7c94ebe1f3b86b474c23766d323900f71b68627c
parent6d25a1afc9476ea47650a5b2631ea14789e40ca7 (diff)
downloadydb-6f9656a9e6881848cd7e4372214c215352309f1b.tar.gz
handle timeout has been fixed YQ-1077
ref:2b643258949acac7a8b758067b71be89dfcd1ee1
-rw-r--r--ydb/core/yq/libs/control_plane_proxy/control_plane_proxy.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ydb/core/yq/libs/control_plane_proxy/control_plane_proxy.cpp b/ydb/core/yq/libs/control_plane_proxy/control_plane_proxy.cpp
index 2be8797ba1..74b21e74e3 100644
--- a/ydb/core/yq/libs/control_plane_proxy/control_plane_proxy.cpp
+++ b/ydb/core/yq/libs/control_plane_proxy/control_plane_proxy.cpp
@@ -114,6 +114,8 @@ public:
, StartTime(TInstant::Now())
{}
+ static constexpr char ActorName[] = "YQ_CONTROL_PLANE_PROXY_RESOLVE_FOLDER";
+
void Bootstrap() {
CPP_LOG_T("Resolve folder bootstrap. Folder id: " << FolderId << " Actor id: " << SelfId());
Become(&TResolveFolderActor::StateFunc, GetDuration(Config.GetRequestTimeout(), TDuration::Seconds(30)), new NActors::TEvents::TEvWakeup());
@@ -168,6 +170,7 @@ public:
Event->Get()->CloudId = cloudId;
CPP_LOG_T("Cloud id: " << cloudId << " Folder id: " << FolderId);
TActivationContext::Send(Event->Forward(ControlPlaneProxyActorId()));
+ PassAway();
}
};