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

mgreber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new 7205043ae [maintenance] fix typo and alignment mismatch
7205043ae is described below

commit 7205043ae2e5c1ae7fb5685bad65a24e76834165
Author: Ashwani Raina <[email protected]>
AuthorDate: Tue Aug 19 19:04:23 2025 +0530

    [maintenance] fix typo and alignment mismatch
    
    Correct the typo in 'rows_writed_per_sec_for_hot_tablets' and fix some
    alignments to make it consistent with what is followed at other places.
    
    This changelist doesn't contain any functional modifications.
    
    Change-Id: I10ade2b989147799164618c38022aee74d5f5fdd
    Reviewed-on: http://gerrit.cloudera.org:8080/23307
    Tested-by: Kudu Jenkins
    Reviewed-by: Marton Greber <[email protected]>
    Reviewed-by: Zoltan Chovan <[email protected]>
---
 src/kudu/tablet/tablet.cc | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/kudu/tablet/tablet.cc b/src/kudu/tablet/tablet.cc
index 777c9eb5e..171fc7147 100644
--- a/src/kudu/tablet/tablet.cc
+++ b/src/kudu/tablet/tablet.cc
@@ -182,18 +182,18 @@ TAG_FLAG(workload_score_upper_bound, experimental);
 TAG_FLAG(workload_score_upper_bound, runtime);
 
 DEFINE_int32(scans_started_per_sec_for_hot_tablets, 1,
-    "Minimum read rate for tablets to be considered 'hot' (scans/sec). If a 
tablet's "
-    "read rate exceeds this value, flush/compaction ops for it will be 
assigned the highest "
-    "possible workload score, which is defined by 
--workload_score_upper_bound.");
+             "Minimum read rate for tablets to be considered 'hot' 
(scans/sec). If a tablet's "
+             "read rate exceeds this value, flush/compaction ops for it will 
be assigned the "
+             "highest possible workload score, which is defined by 
--workload_score_upper_bound.");
 TAG_FLAG(scans_started_per_sec_for_hot_tablets, experimental);
 TAG_FLAG(scans_started_per_sec_for_hot_tablets, runtime);
 
-DEFINE_int32(rows_writed_per_sec_for_hot_tablets, 1000,
-    "Minimum write rate for tablets to be considered 'hot' (rows/sec). If a 
tablet's "
-    "write rate exceeds this value, compaction ops for it will be assigned the 
highest "
-    "possible workload score, which is defined by 
--workload_score_upper_bound.");
-TAG_FLAG(rows_writed_per_sec_for_hot_tablets, experimental);
-TAG_FLAG(rows_writed_per_sec_for_hot_tablets, runtime);
+DEFINE_int32(rows_written_per_sec_for_hot_tablets, 1000,
+             "Minimum write rate for tablets to be considered 'hot' 
(rows/sec). If a tablet's "
+             "write rate exceeds this value, compaction ops for it will be 
assigned the highest "
+             "possible workload score, which is defined by 
--workload_score_upper_bound.");
+TAG_FLAG(rows_written_per_sec_for_hot_tablets, experimental);
+TAG_FLAG(rows_written_per_sec_for_hot_tablets, runtime);
 
 DEFINE_double(rowset_compaction_ancient_delta_max_ratio, 0.2,
               "The ratio of data in ancient UNDO deltas to the total amount "
@@ -2703,7 +2703,7 @@ double 
Tablet::CollectAndUpdateWorkloadStats(MaintenanceOp::PerfImprovementOpTyp
       double last_write_rate =
           static_cast<double>(rows_mutated - last_rows_mutated_) / 
elapse.ToSeconds();
       last_write_score_ =
-          std::min(1.0, last_write_rate / 
FLAGS_rows_writed_per_sec_for_hot_tablets) *
+          std::min(1.0, last_write_rate / 
FLAGS_rows_written_per_sec_for_hot_tablets) *
           FLAGS_workload_score_upper_bound;
     }
     if (elapse.ToMilliseconds() > 
FLAGS_workload_stats_metric_collection_interval_ms) {

Reply via email to