We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a4206 commit d985299Copy full SHA for d985299
server/src/main/java/org/elasticsearch/index/shard/IndexShard.java
@@ -1370,7 +1370,7 @@ public FlushStats flushStats() {
1370
flushMetric.count(),
1371
periodicFlushMetric.count(),
1372
TimeUnit.NANOSECONDS.toMillis(flushMetric.sum()),
1373
- getEngineOrNull() != null ? getEngineOrNull().getTotalFlushTimeExcludingWaitingOnLockInMillis() : 0L
+ withEngineOrNull(engine -> engine != null ? engine.getTotalFlushTimeExcludingWaitingOnLockInMillis() : 0L)
1374
);
1375
}
1376
0 commit comments