File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/repository-azure/src/internalClusterTest/java/org/elasticsearch/repositories/azure Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5656import java .util .regex .Pattern ;
5757import 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 ;
6060import static org .elasticsearch .repositories .blobstore .BlobStoreTestUtil .randomPurpose ;
6161import static org .elasticsearch .test .hamcrest .ElasticsearchAssertions .assertAcked ;
6262import 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 });
You can’t perform that action at this time.
0 commit comments