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 54b46ac commit a556387Copy full SHA for a556387
server/src/main/java/org/elasticsearch/index/shard/IndexShard.java
@@ -1335,11 +1335,12 @@ public RefreshStats refreshStats() {
1335
}
1336
1337
public FlushStats flushStats() {
1338
+ final Engine engine = getEngineOrNull();
1339
return new FlushStats(
1340
flushMetric.count(),
1341
periodicFlushMetric.count(),
1342
TimeUnit.NANOSECONDS.toMillis(flushMetric.sum()),
- getEngineOrNull() != null ? getEngineOrNull().getTotalFlushTimeExcludingWaitingOnLockInMillis() : 0L
1343
+ engine != null ? engine.getTotalFlushTimeExcludingWaitingOnLockInMillis() : 0L
1344
);
1345
1346
0 commit comments