Skip to content

Commit 598c8d5

Browse files
committed
changefeedccl: remove fixed latency checks from pts benchmark test
Removes the fixed threshold checks for the `changefeed_stage_pts_manage_latency` and `changefeed_stage_pts_manage_error_latency` metrics in the cdc/multi-table-pts-benchmark roachtests. These thresholds were too rigid and caused noisy failures. Issue #154447 has been filed to track the goal of monitoring these metrics via roachperf instead. Fixes: #152900 Fixes: #152903 Fixes: #153017 Fixes: #154120 Fixes: #154122 Fixes: #154132 Fixes: #154302 Fixes: #154357 Epic: CRDB-1421 Release note: None
1 parent a9fe917 commit 598c8d5

File tree

1 file changed

+2
-45
lines changed

1 file changed

+2
-45
lines changed

pkg/cmd/roachtest/tests/cdc.go

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,14 +1881,8 @@ func runCDCMultiTablePTSBenchmark(
18811881

18821882
ct.waitForWorkload()
18831883

1884-
t.Status("workload finished, verifying metrics")
1885-
1886-
// These metrics are in nanoseconds, so we are asserting that both
1887-
// of these latency metrics are less than 25 milliseconds.
1888-
ct.verifyMetrics(ctx, ct.verifyMetricsUnderThreshold([]string{
1889-
"changefeed_stage_pts_manage_latency",
1890-
"changefeed_stage_pts_create_latency",
1891-
}, float64(30*time.Millisecond)))
1884+
// TODO(#154447): Send values of changefeed_stage_pts_manage_latency and
1885+
// changefeed_stage_pts_manage_error_latency metrics to RoachPerf.
18921886

18931887
t.Status("multi-table PTS benchmark finished")
18941888
}
@@ -4922,40 +4916,3 @@ func verifyMetricsNonZero(names ...string) func(metrics map[string]*prompb.Metri
49224916
return false
49234917
}
49244918
}
4925-
4926-
func (ct *cdcTester) verifyMetricsUnderThreshold(
4927-
names []string, threshold float64,
4928-
) func(metrics map[string]*prompb.MetricFamily) (ok bool) {
4929-
namesMap := make(map[string]struct{}, len(names))
4930-
for _, name := range names {
4931-
namesMap[name] = struct{}{}
4932-
}
4933-
4934-
return func(metrics map[string]*prompb.MetricFamily) (ok bool) {
4935-
found := map[string]struct{}{}
4936-
4937-
for name, fam := range metrics {
4938-
if _, ok := namesMap[name]; !ok {
4939-
continue
4940-
}
4941-
4942-
for _, m := range fam.Metric {
4943-
if m.Histogram.GetSampleCount() == 0 {
4944-
continue
4945-
}
4946-
4947-
observedValue := m.Histogram.GetSampleSum() / float64(m.Histogram.GetSampleCount())
4948-
if observedValue < threshold {
4949-
found[name] = struct{}{}
4950-
} else {
4951-
ct.t.Fatalf("observed value for metric %s over threshold. observedValue: %f, threshold: %f", name, observedValue, threshold)
4952-
}
4953-
}
4954-
4955-
if len(found) == len(names) {
4956-
return true
4957-
}
4958-
}
4959-
return false
4960-
}
4961-
}

0 commit comments

Comments
 (0)