Commit 97627e8
authored
Avoid creating IndexSearcher in Engine.refreshNeeded (elastic#123218) (elastic#123257)
Checking whether we need to refresh does not require a searcher
so we can simplify this to just work based on the reader
and avoid lots of contention etc. for setting up the searcher.
relates elastic#1223741 parent 2aa011d commit 97627e8
File tree
1 file changed
+19
-15
lines changed- server/src/main/java/org/elasticsearch/index/engine
1 file changed
+19
-15
lines changedLines changed: 19 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1225 | 1230 | | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
| 1231 | + | |
1233 | 1232 | | |
1234 | | - | |
| 1233 | + | |
1235 | 1234 | | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1236 | 1241 | | |
1237 | | - | |
1238 | 1242 | | |
1239 | 1243 | | |
1240 | 1244 | | |
| |||
0 commit comments