aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Makunin <igor.makunin@gmail.com>2022-03-29 11:01:36 +0300
committerIgor Makunin <igor.makunin@gmail.com>2022-03-29 11:01:36 +0300
commita5577f8acbe141af6463348217b35cb09bd245e5 (patch)
tree21a129af542be4a10afca62ad1b15bae117a373e
parente8dd00906c386e3b1b5959de27cb01fa5dcedb75 (diff)
downloadydb-a5577f8acbe141af6463348217b35cb09bd245e5.tar.gz
KIKIMR-14582: dont fail on exception
ref:965024ec888c8426f3bf68e1546693f1bfee6152
-rw-r--r--ydb/core/kqp/executer/kqp_data_executer.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/ydb/core/kqp/executer/kqp_data_executer.cpp b/ydb/core/kqp/executer/kqp_data_executer.cpp
index 9f37652df5d..fa5d5428d2f 100644
--- a/ydb/core/kqp/executer/kqp_data_executer.cpp
+++ b/ydb/core/kqp/executer/kqp_data_executer.cpp
@@ -144,12 +144,16 @@ public:
public:
STATEFN(WaitResolveState) {
- switch (ev->GetTypeRewrite()) {
- hFunc(TEvKqpExecuter::TEvTableResolveStatus, HandleResolve);
- hFunc(TEvKqp::TEvAbortExecution, HandleAbortExecution);
- hFunc(TEvents::TEvWakeup, HandleTimeout);
- default:
- UnexpectedEvent("WaitResolveState", ev->GetTypeRewrite());
+ try {
+ switch (ev->GetTypeRewrite()) {
+ hFunc(TEvKqpExecuter::TEvTableResolveStatus, HandleResolve);
+ hFunc(TEvKqp::TEvAbortExecution, HandleAbortExecution);
+ hFunc(TEvents::TEvWakeup, HandleTimeout);
+ default:
+ UnexpectedEvent("WaitResolveState", ev->GetTypeRewrite());
+ }
+ } catch (const yexception& e) {
+ InternalError(e.what());
}
ReportEventElapsedTime();
}