-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[bug] Return a spec on reconnect #15214
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Be sure to add a CL entry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
From #9757:
safely handle
🤦 Guess not! What's insidious about this bug is that there's a "resources may have leaked" error just after the nil check in the PostRun
, where we could have potentially caught this behavior.
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR changes the behavior on reconnect from the behavior introduced in #9757.
nomad/client/allocrunner/network_manager_linux.go
Lines 100 to 104 in 83b31ea
If the client enters this case and is returned a nil spec. When the network_hook's Postrun func is called to clean things up, the nil spec causes a fast exit.
nomad/client/allocrunner/network_hook.go
Lines 115 to 118 in 83b31ea
This PR changes the behavior when we encounter the existing network namespace to return the spec so that the Postrun behavior will run properly to reap the namespace.
Fixes #11096