Commit dd4b8d9
authored
Avoid holding references to SearchExecutionContext in SourceConfirmedTextQuery (#134887)
Lucene Query objects can hang around for longer than a single search,
for example as the key in a Query cache. This means that they should
not hold references to anything that is only expected to exist for the
duration of a single search request.
SourceConfirmedTextQuery holds a lambda to load data during query
execution. This commit changes one of the constructor calls to avoid
capturing unnecessary references to the SearchExecutionContext, an
object which is expected to be short-lived.1 parent 942e341 commit dd4b8d9
File tree
2 files changed
+7
-2
lines changed- docs/changelog
- modules/mapper-extras/src/main/java/org/elasticsearch/index/mapper/extras
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
304 | 306 | | |
305 | | - | |
306 | | - | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
0 commit comments