This is an automated email from the ASF dual-hosted git repository.
xiangfu0 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 16ef89030be Remove unused Prometheus test resource helper (#19932)
16ef89030be is described below
commit 16ef89030be3d4e079ca9641c090c8c2d5c9e657
Author: Xiang Fu <[email protected]>
AuthorDate: Mon Oct 19 14:25:51 2026 -0700
Remove unused Prometheus test resource helper (#19932)
---
.../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]