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

morningman pushed a commit to branch branch-0.13
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git

commit 9d86f66378e349ccd7846c58b0e96d2ecd399e02
Author: chenmingyu <chenmin...@baidu.com>
AuthorDate: Mon Sep 14 15:50:13 2020 +0800

    [compaction][config] Change default config policy to size_based
    
    Change-Id: Id6a1023cb9b4b23bb0714572aeca5d8a0c9ce865
---
 be/src/common/config.h | 2 +-
 be/src/olap/tablet.cpp | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/be/src/common/config.h b/be/src/common/config.h
index 08151ad..cd16488 100644
--- a/be/src/common/config.h
+++ b/be/src/common/config.h
@@ -273,7 +273,7 @@ namespace config {
     // num_based policy, the original version of cumulative compaction, 
cumulative version compaction once.
     // size_based policy, a optimization version of cumulative compaction, 
targeting the use cases requiring 
     // lower write amplification, trading off read amplification and space 
amplification.
-    CONF_String(cumulative_compaction_policy, "num_based");
+    CONF_String(cumulative_compaction_policy, "size_based");
 
     // In size_based policy, output rowset of cumulative compaction total disk 
size exceed this config size, 
     // this rowset will be given to base compaction, unit is m byte.
diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp
index ea84164..d580611 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -445,6 +445,13 @@ void Tablet::delete_expired_stale_rowset() {
     std::vector<Version> missed_versions;
     calc_missed_versions_unlocked(lastest_delta->end_version(), 
&missed_versions);
 
+    if (!missed_versions.empty()) {
+        LOG(WARNING) << "tablet:" << full_name() << ", missed version for 
version:" 
+            << lastest_delta->end_version();
+        _print_missed_versions(missed_versions);
+        return;
+    }
+
     // do check consistent operation
     auto path_id_iter = path_id_vec.begin();
 


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

Reply via email to