Skip to content

Commit af7c409

Browse files
Use timestampMillis name in CachedAllocationStats record
1 parent fe601a1 commit af7c409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/allocation/TransportGetAllocationStatsAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public DiskThresholdSettings getDiskThresholdSettings() {
208208
}
209209
}
210210

211-
private record CachedAllocationStats(Map<String, NodeAllocationStats> stats, long timestampMsecs) {}
211+
private record CachedAllocationStats(Map<String, NodeAllocationStats> stats, long timestampMillis) {}
212212

213213
private static class AllocationStatsCache {
214214
private final long maxAgeMillis;
@@ -229,7 +229,7 @@ Map<String, NodeAllocationStats> get() {
229229

230230
final var stats = cachedStats.get();
231231

232-
if (stats == null || threadPool.relativeTimeInMillis() - stats.timestampMsecs > maxAgeMillis) {
232+
if (stats == null || threadPool.relativeTimeInMillis() - stats.timestampMillis > maxAgeMillis) {
233233
return null;
234234
}
235235

0 commit comments

Comments
 (0)