This is an automated email from the ASF dual-hosted git repository. xiangfu0 pushed a commit to branch codex/test-audit-unused-prometheus-test-helper in repository https://gitbox.apache.org/repos/asf/pinot.git
commit 0f9989dd848cfad9c02b25cd8057496d3dffff55 Author: Xiang Fu <[email protected]> AuthorDate: Sun Oct 18 23:16:08 2026 -0700 Remove unused Prometheus test resource helper --- .../metrics/prometheus/PinotPrometheusMetricsTest.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pinot-common/src/test/java/org/apache/pinot/common/metrics/prometheus/PinotPrometheusMetricsTest.java b/pinot-common/src/test/java/org/apache/pinot/common/metrics/prometheus/PinotPrometheusMetricsTest.java index 06eb21ddeb1..489953f6578 100644 --- a/pinot-common/src/test/java/org/apache/pinot/common/metrics/prometheus/PinotPrometheusMetricsTest.java +++ b/pinot-common/src/test/java/org/apache/pinot/common/metrics/prometheus/PinotPrometheusMetricsTest.java @@ -19,7 +19,6 @@ package org.apache.pinot.common.metrics.prometheus; import com.google.common.base.Objects; -import com.google.common.io.Resources; import io.prometheus.jmx.JmxCollector; import io.prometheus.jmx.JmxCollector.Mode; import io.prometheus.metrics.exporter.httpserver.HTTPServer; @@ -30,8 +29,6 @@ import java.io.IOException; import java.io.StringReader; import java.net.InetSocketAddress; import java.net.URI; -import java.net.URL; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; @@ -294,15 +291,6 @@ public abstract class PinotPrometheusMetricsTest { } } - private String loadResourceAsString(String resourceFileName) { - URL url = Resources.getResource(resourceFileName); - try { - return Resources.toString(url, StandardCharsets.UTF_8); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - public static class ExportedLabels { public static final List<String> TABLENAME = List.of(TABLE, ExportedLabelValues.TABLENAME); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
