-
Notifications
You must be signed in to change notification settings - Fork 453
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
Nodes crashing on stack overflow due to context finalizer endless recursive call #3312
Comments
Seems that golang/go#7181 prevents from knowing the exact origin of the problem. The callers of
|
@asafm -- are you able to reproduce this issue? This may be an issue related to a high number of index blocks being accessed for a single query. There may be something that can be done with the child / parent relationship of our context objects. |
@gibbscullen This error is from production, 2 days ago. It happened yesterday, 3 times, on same cluster, knowing out, 8 nodes, after 1 hours 5 nodes, after 1 hours 4 nodes, 3 times overall. I can't reproduce as the panic stack-trace doesn't reveal the actual source of the code running inside that go routine, which call register finalizer endlessly. Can you please explain how did you come up with many index blocks as reason? @benraskin92 I saw in Git History you wrote the original recursive call. WDYT about my refactor idea to help find the cause? |
After reading the code and some background knowledge context, it seems that:
Since the amount of callers to WDYT? @benraskin92 |
OK, here's the proposed fix I will write in my branch. Any feedback would be appreciated.
|
@asafm thanks for the proposal -- we'll take a look and follow up with any feedback. |
@gibbscullen I implemented my proposal. Can someone from the maintainers review this? |
@asafm yes will do. Thanks! |
We've had 12 db nodes, crashing, one after another, in a span on ~10min, due to stack-overflow (see stderr below).
Attaching complete stder
stderr.txt
The text was updated successfully, but these errors were encountered: