Commit 3e27598
committed
Add withEngineOrNullIfBeingReset
And deprecate old style getEngine/OrNull methods.
Apply new functionality to several methods that do not need to
wait for the engine being reset and can do with a null engine.
These pertain typically to periodic operations that can skip
a shard being reset and revisit it next time.
Also return empty stats for a few stats in case the engine is
being reset. These are stats that are already returned empty
from a hollow engine.
Relates ES-114571 parent fc0ea64 commit 3e27598
File tree
3 files changed
+302
-104
lines changed- server/src
- main/java/org/elasticsearch
- action/admin/indices/flush
- index/shard
- test/java/org/elasticsearch/index/shard
3 files changed
+302
-104
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments