You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "csun5285 (via GitHub)" <gi...@apache.org> on 2023/07/17 08:02:31 UTC

[GitHub] [doris] csun5285 commented on a diff in pull request #21670: [fix](compaction)fix time series compaction policy

csun5285 commented on code in PR #21670:
URL: https://github.com/apache/doris/pull/21670#discussion_r1265007317


##########
be/src/olap/cumulative_compaction_time_series_policy.cpp:
##########
@@ -137,9 +137,7 @@ void TimeSeriesCumulativeCompactionPolicy::calculate_cumulative_point(
 
         // check the rowset is whether less than _compaction_goal_size
         // The result of compaction may be slightly smaller than the _compaction_goal_size.
-        if (!is_delete && rs->version().first != 0 &&
-            rs->total_disk_size() <
-                    (config::time_series_compaction_goal_size_mbytes * 1024 * 1024 * 0.8)) {
+        if (!is_delete && rs->version().first != 0 && rs->version().first == rs->version().second) {

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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