Commit eb20ffa
authored
[DiskBBQ] do not build empty priority queue (#138434)
I noticed in some of our internal benchmarks that this cal fail with
error:
```
'search_phase_execution_exception', 'maxSize must be > 0 and < 2147483630; got: 0', maxSize must be > 0 and < 2147483630; got: 0)
```
In order to prevent that let's add a fail safe. We should later
investigate how we ended up in this situation as I would expect we
should bail out earlier.1 parent 790810e commit eb20ffa
File tree
2 files changed
+22
-0
lines changed- server/src
- main/java/org/elasticsearch/index/codec/vectors/diskbbq/next
- test/java/org/elasticsearch/index/codec/vectors/diskbbq/next
2 files changed
+22
-0
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
327 | 341 | | |
328 | 342 | | |
329 | 343 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
385 | 393 | | |
386 | 394 | | |
387 | 395 | | |
| |||
0 commit comments