Commit 40b1ecb
[BUGFIX] Ingester: fix inflight query counter leak on resource rejection (#7539)
* Fix ingester inflight query counter leak
Signed-off-by: Sandy Chen <Yuxuan.Chen@morganstanley.com>
* Address review feedback on inflight query leak fix
- Add clarifying comment before the post-rejection QueryStream block,
per inline review nit.
- Replace `i.resourceBasedLimiter = nil` with mutating the underlying
mock monitor's heap utilization, so the same live limiter admits the
second query. The regression test now exercises the limiter machinery
on the retry instead of bypassing it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Sandy Chen <Yuxuan.Chen@morganstanley.com>
---------
Signed-off-by: Sandy Chen <Yuxuan.Chen@morganstanley.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>1 parent 40a27ad commit 40b1ecb
3 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2578 | 2578 | | |
2579 | 2579 | | |
2580 | 2580 | | |
2581 | | - | |
2582 | | - | |
2583 | 2581 | | |
2584 | 2582 | | |
2585 | 2583 | | |
2586 | 2584 | | |
2587 | 2585 | | |
2588 | 2586 | | |
2589 | 2587 | | |
| 2588 | + | |
| 2589 | + | |
2590 | 2590 | | |
2591 | 2591 | | |
2592 | 2592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3533 | 3533 | | |
3534 | 3534 | | |
3535 | 3535 | | |
3536 | | - | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
3537 | 3539 | | |
3538 | 3540 | | |
3539 | 3541 | | |
| |||
3542 | 3544 | | |
3543 | 3545 | | |
3544 | 3546 | | |
3545 | | - | |
| 3547 | + | |
| 3548 | + | |
3546 | 3549 | | |
3547 | 3550 | | |
3548 | 3551 | | |
| |||
3566 | 3569 | | |
3567 | 3570 | | |
3568 | 3571 | | |
| 3572 | + | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
3569 | 3578 | | |
3570 | 3579 | | |
3571 | 3580 | | |
| |||
0 commit comments