File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
server/src/internalClusterTest/java/org/elasticsearch/repositories Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,22 +67,22 @@ public void testSnapshotAPMMetrics() throws Exception {
6767
6868 // wait for snapshot to finish to test the other metrics
6969 awaitNumberOfSnapshotsInProgress (0 );
70- final long snapshotElapsedTime = System .nanoTime () - beforeCreateSnapshotNanos ;
70+ final long snapshotElapsedTimeNanos = System .nanoTime () - beforeCreateSnapshotNanos ;
7171 collectMetrics ();
7272
7373 // sanity check blobs and bytes metrics
7474 assertThat (getTotalClusterLongCounterValue (SnapshotMetrics .SNAPSHOT_BLOBS_UPLOADED ), greaterThan (0L ));
7575 assertThat (getTotalClusterLongCounterValue (SnapshotMetrics .SNAPSHOT_BYTES_UPLOADED ), greaterThan (0L ));
7676
7777 // sanity check duration values
78- final long upperBoundTimeSpentOnSnapshotThings = internalCluster ().numDataNodes () * snapshotElapsedTime ;
78+ final long upperBoundTimeSpentOnSnapshotThingsNanos = internalCluster ().numDataNodes () * snapshotElapsedTimeNanos ;
7979 assertThat (
8080 getTotalClusterLongCounterValue (SnapshotMetrics .SNAPSHOT_UPLOAD_DURATION ),
81- allOf (greaterThan (0L ), lessThan (upperBoundTimeSpentOnSnapshotThings ))
81+ allOf (greaterThan (0L ), lessThan (upperBoundTimeSpentOnSnapshotThingsNanos ))
8282 );
8383 assertThat (
8484 getTotalClusterLongCounterValue (SnapshotMetrics .SNAPSHOT_UPLOAD_READ_DURATION ),
85- allOf (greaterThan (0L ), lessThan (upperBoundTimeSpentOnSnapshotThings ))
85+ allOf (greaterThan (0L ), lessThan (upperBoundTimeSpentOnSnapshotThingsNanos ))
8686 );
8787
8888 assertThat (getTotalClusterLongCounterValue (SnapshotMetrics .SNAPSHOT_SHARDS_STARTED ), equalTo ((long ) numShards ));
You can’t perform that action at this time.
0 commit comments