Commit 28ef047
Fix SearchApplication misusing BytesStreamOutput (elastic#127957)
Closing an xcontent builder in general also closes the underlying stream.
The only reason this worked was that we were always using the no-pooling `BigArrays`
which also makes the use of the circuit breaker a noop here.
Found this when trying to optimize the releasable bytes stream and seeing it
break.
=> just move the non-pooled bytes stream to simplify things1 parent 1678413 commit 28ef047
File tree
2 files changed
+6
-10
lines changed- x-pack/plugin/ent-search/src
- main/java/org/elasticsearch/xpack/application/search
- test/java/org/elasticsearch/xpack/application/search
2 files changed
+6
-10
lines changedLines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
282 | 281 | | |
283 | 282 | | |
284 | 283 | | |
285 | | - | |
| 284 | + | |
286 | 285 | | |
287 | | - | |
288 | | - | |
289 | 286 | | |
290 | 287 | | |
291 | | - | |
| 288 | + | |
292 | 289 | | |
293 | | - | |
| 290 | + | |
294 | 291 | | |
295 | 292 | | |
296 | 293 | | |
| |||
305 | 302 | | |
306 | 303 | | |
307 | 304 | | |
308 | | - | |
| 305 | + | |
309 | 306 | | |
310 | 307 | | |
311 | 308 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
| 113 | + | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
| |||
0 commit comments