Skip to content

Commit

Permalink
Fix cherry-pick issue of using JDK10 API
Browse files Browse the repository at this point in the history
  • Loading branch information
codelipenghui committed Jun 13, 2022
1 parent 9796eb4 commit ff7762b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private void testMessageAckRateMetric(String topicName, boolean exposeTopicLevel

ByteArrayOutputStream output = new ByteArrayOutputStream();
PrometheusMetricsGenerator.generate(pulsar, exposeTopicLevelMetrics, true, true, output);
String metricStr = output.toString(StandardCharsets.UTF_8);
String metricStr = output.toString(StandardCharsets.UTF_8.name());

Multimap<String, PrometheusMetricsTest.Metric> metricsMap = PrometheusMetricsTest.parseMetrics(metricStr);
Collection<PrometheusMetricsTest.Metric> metrics = metricsMap.get("pulsar_consumer_msg_ack_rate");
Expand Down

0 comments on commit ff7762b

Please sign in to comment.