From ded2abde1f963a435dbf1f712e5e37ccdb2b1dad Mon Sep 17 00:00:00 2001 From: HeYuchen <377710264@qq.com> Date: Tue, 2 Mar 2021 14:31:13 +0800 Subject: [PATCH] feat(split): add split check when drop app (#765) --- src/meta/server_state.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/meta/server_state.cpp b/src/meta/server_state.cpp index 9a50aac66e..588932f326 100644 --- a/src/meta/server_state.cpp +++ b/src/meta/server_state.cpp @@ -1156,6 +1156,11 @@ void server_state::drop_app(dsn::message_ex *msg) } else { switch (app->status) { case app_status::AS_AVAILABLE: + if (app->splitting()) { + // not drop splitting app + response.err = ERR_SPLITTING; + break; + } do_dropping = true; app->status = app_status::AS_DROPPING; app->drop_second = dsn_now_ms() / 1000;