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 46ec95b commit d6f91f5Copy full SHA for d6f91f5
server/src/main/java/org/elasticsearch/index/shard/IndexShard.java
@@ -1340,11 +1340,12 @@ public RefreshStats refreshStats() {
1340
}
1341
1342
public FlushStats flushStats() {
1343
+ final Engine engine = getEngineOrNull();
1344
return new FlushStats(
1345
flushMetric.count(),
1346
periodicFlushMetric.count(),
1347
TimeUnit.NANOSECONDS.toMillis(flushMetric.sum()),
- getEngineOrNull() != null ? getEngineOrNull().getTotalFlushTimeExcludingWaitingOnLockInMillis() : 0L
1348
+ engine != null ? engine.getTotalFlushTimeExcludingWaitingOnLockInMillis() : 0L
1349
);
1350
1351
0 commit comments