Skip to content

Commit 84712c3

Browse files
committed
Fix test
1 parent ee50d59 commit 84712c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/repository-azure/src/internalClusterTest/java/org/elasticsearch/repositories/azure/AzureBlobStoreRepositoryTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
import java.util.regex.Pattern;
5757
import java.util.stream.Collectors;
5858

59-
import static org.elasticsearch.repositories.RepositoriesMetrics.METRIC_OPERATIONS_TOTAL;
59+
import static org.elasticsearch.repositories.RepositoriesMetrics.METRIC_REQUESTS_TOTAL;
6060
import static org.elasticsearch.repositories.blobstore.BlobStoreTestUtil.randomPurpose;
6161
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
6262
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
@@ -379,7 +379,7 @@ public void testMetrics() throws Exception {
379379
final Map<AzureBlobStore.StatsKey, AzureBlobStore.StatsCounter> statsCollectors = blobStore.getMetricsRecorder().statsCounters;
380380

381381
final List<Measurement> metrics = Measurement.combine(
382-
getTelemetryPlugin(nodeName).getLongCounterMeasurement(METRIC_OPERATIONS_TOTAL)
382+
getTelemetryPlugin(nodeName).getLongCounterMeasurement(METRIC_REQUESTS_TOTAL)
383383
);
384384

385385
assertThat(
@@ -404,7 +404,7 @@ public void testMetrics() throws Exception {
404404
assertThat(
405405
nodeName + "/" + statsKey + " has correct sum",
406406
metric.getLong(),
407-
equalTo(statsCollectors.get(statsKey).operations().sum())
407+
equalTo(statsCollectors.get(statsKey).requests().sum())
408408
);
409409
aggregatedMetrics.compute(statsKey.operation(), (k, v) -> v == null ? metric.getLong() : v + metric.getLong());
410410
});

0 commit comments

Comments
 (0)