From f5497cf60fda411596a42796d3edbbe852e4f93e Mon Sep 17 00:00:00 2001 From: ByteYue Date: Wed, 13 Mar 2024 15:54:27 +0800 Subject: [PATCH] pick --- be/src/olap/tablet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index 0b92c109901964..f9b12cc671dc86 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -228,6 +228,10 @@ void WriteCooldownMetaExecutors::WriteCooldownMetaExecutors::submit(TabletShared VLOG_NOTICE << "tablet " << tablet_id << " is not cooldown replica"; return; } + if (tablet->tablet_state() == TABLET_SHUTDOWN) [[unlikely]] { + LOG_INFO("tablet {} has been dropped, don't do cooldown", tablet_id); + return; + } } { // one tablet could at most have one cooldown task to be done