This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 343c75b60a9 Pick "[enhance](Cooldown) Skip cooldown if the tablet is
dropped #32079" (#32178)
343c75b60a9 is described below
commit 343c75b60a96aa3c0fe58cb1cdfd3ea746aea677
Author: AlexYue <[email protected]>
AuthorDate: Wed Mar 13 19:28:24 2024 +0800
Pick "[enhance](Cooldown) Skip cooldown if the tablet is dropped #32079"
(#32178)
---
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 0b92c109901..f9b12cc671d 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]