You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2024/01/09 00:46:21 UTC

(doris) branch branch-2.0 updated: [improve](cooldown) skip empty tablet (#29620) (#29632)

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

kxiao 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 dd962591ebe [improve](cooldown) skip empty tablet (#29620) (#29632)
dd962591ebe is described below

commit dd962591ebe7e9998f8611e816f365de2d47ea09
Author: Yongqiang YANG <98...@users.noreply.github.com>
AuthorDate: Tue Jan 9 08:46:14 2024 +0800

    [improve](cooldown) skip empty tablet (#29620) (#29632)
---
 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 1699756d01e..b2c4302c929 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -2385,6 +2385,10 @@ RowsetSharedPtr Tablet::pick_cooldown_rowset() {
     if (!rowset) {
         return nullptr;
     }
+    if (tablet_footprint() == 0) {
+        VLOG_DEBUG << "skip cooldown due to empty tablet_id = " << tablet_id();
+        return nullptr;
+    }
     if (min_local_version != cooldowned_version + 1) { // ensure version continuity
         if (UNLIKELY(cooldowned_version != -1)) {
             LOG(WARNING) << "version not continuous. tablet_id=" << tablet_id()


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