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