This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit ffa904c4870220afe7997754edbdc2ef57c129e8
Author: AlexYue <yj976240...@gmail.com>
AuthorDate: Tue Mar 12 11:40:24 2024 +0800

    [enhance](Cooldown) Skip cooldown if the tablet is dropped (#32079)
---
 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 bfe31843ed1..903f169f4b9 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -223,6 +223,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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to