From a23e7f2c4e26d53f6b37e3ceb28c127ceac97512 Mon Sep 17 00:00:00 2001 From: discord9 Date: Wed, 18 Nov 2026 12:16:50 +0800 Subject: [PATCH] test(promql): read the partition producer's node metrics from the plan's own set (#10501) `test_remote_write_v2_histogram_avg_native_partitions` read the producer's per-partition `native.root.output_values` through `ExecutionPlan::metrics`. `FusedSeriesExec::metrics` drops node metrics on purpose - `is_node_metric` covers `native.root.*`, so the operator's set reports only its own figures - and the map stayed empty. The assertion then saw zero partitions where the statement asks for four. Read the plan's own set through `node_metric_set`, which is how the other node-metric assertions in this file already do it. Signed-off-by: discord9 --- tests-integration/tests/http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests-integration/tests/http.rs b/tests-integration/tests/http.rs index ecb213c4ca3..488c58502eb 100644 --- a/tests-integration/tests/http.rs +++ b/tests-integration/tests/http.rs @@ -7386,7 +7386,7 @@ pub async fn test_remote_write_v2_histogram_avg_native_partitions(store_type: St .iter() .find(|node| !Arc::ptr_eq(node, consumer)) .expect("the partial producer"); - let metrics = producer.metrics().expect("producer metrics"); + let metrics = node_metric_set(producer); let mut partitions: BTreeMap = BTreeMap::new(); for metric in metrics.iter() { if metric.value().name() == "native.root.output_values"