-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Race condition during Gin context cancellation #4588
Comments
We seem to be facing the same issue
Running:
Provides the stack trace below:
|
I think this would need a change in the gin API. |
cc @hanyuancheung per code owners. |
Hi, any news on this topic? 👀 |
Gin, having no code owner, is in the process of being deprecated/removed. Hence the lack of updates here. |
defer func() {
c.Request = c.Request.WithContext(savedCtx)
}() I was wondering what would happen if I removed this paragraph. As far as I know, it doesn't seem to cause any other problems. Maybe it just restores the But I found that it created other problems. This is the problem that has been found with it so far. If there are any issues, you can let me know. Additionally, if there are no problems, I plan to submit a PR to remove this part of the code. |
Description
Using golang's race detector we identified a race condition with otelgin instrumentation. The race happens when
Below we give a detailed race report.
Environment
otelgin
version: v0.45.0Steps To Reproduce
This race is profiled using our internal codebase.
Expected behavior
The golang race detector shouldn't give a race report when using otelgin.
The text was updated successfully, but these errors were encountered: