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 d007ad0 commit 8e29403Copy full SHA for 8e29403
server/src/main/java/org/elasticsearch/index/shard/IndexShard.java
@@ -1366,11 +1366,12 @@ public RefreshStats refreshStats() {
1366
}
1367
1368
public FlushStats flushStats() {
1369
+ final Engine engine = getEngineOrNull();
1370
return new FlushStats(
1371
flushMetric.count(),
1372
periodicFlushMetric.count(),
1373
TimeUnit.NANOSECONDS.toMillis(flushMetric.sum()),
- getEngineOrNull() != null ? getEngineOrNull().getTotalFlushTimeExcludingWaitingOnLockInMillis() : 0L
1374
+ engine != null ? engine.getTotalFlushTimeExcludingWaitingOnLockInMillis() : 0L
1375
);
1376
1377
0 commit comments