Skip to content

Conversation

@colega
Copy link
Contributor

@colega colega commented Oct 10, 2025

Fixes: #749

This also updates grpc library to v1.75 where this bug is introduced, so the tests are consistent with the code.

This PR adds a timer on each request that will verify whether the request actually proceeded, and if it didn't, it will call RPCCallFinished to make sure that the method limiter provided has performed the necessary cleanup.

In the usual flow, we will cancel that timer as soon as we start processing the headers.

Fixes: #749

This also updates grpc library to v1.75 where this bug is introduced, so the tests are consistent with the code.

This PR adds a timer on each request that will verify whether the request actually proceeded, and if it didn't, it will call RPCCallFinished to make sure that the method limiter provided has performed the necessary cleanup.

In the usual flow, we will cancel that timer as soon as we start processing the headers.

Signed-off-by: Oleg Zaytsev <[email protected]>
Copy link
Contributor

@NickAnge NickAnge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nits only

Signed-off-by: Oleg Zaytsev <[email protected]>
@colega colega merged commit 965b207 into main Oct 10, 2025
15 of 16 checks passed
@colega colega deleted the fix-grpcinflightlimitcheck-should-always-call-rpccallfinished branch October 10, 2025 19:31
colega added a commit to grafana/mimir that referenced this pull request Oct 10, 2025
#### What this PR does

Updated dskit to include the fix from
grafana/dskit#750

See #12966 for more details about
the bug.

#### Which issue(s) this PR fixes or relates to

Fixes #12966

#### Checklist

- [ ] Tests updated.
- [ ] Documentation added.
- [x] `CHANGELOG.md` updated - the order of entries should be
`[CHANGE]`, `[FEATURE]`, `[ENHANCEMENT]`, `[BUGFIX]`. If changelog entry
is not needed, please add the `changelog-not-needed` label to the PR.
- [ ]
[`about-versioning.md`](https://github.com/grafana/mimir/blob/main/docs/sources/mimir/configure/about-versioning.md)
updated with experimental features.

Signed-off-by: Oleg Zaytsev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: grpcInflightLimitCheck doesn't always call RPCCallFinished

2 participants