-
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
csi: nil-check allocs for claim methods #7760
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, it looks like errors are handled down through the client, this seems good until the other fix.
Mind if you elaborate on how this fixes the issue. Reading the stack trace in issue #7712, I suspect something else is happening and that it's due to Here is my analysis: The exception happens in // Check the blocking allocations to see if they belong to this job
for _, a := range v.WriteAllocs {
if a.Namespace != alloc.Namespace || a.JobID != alloc.JobID { I believe that Alternatively, my guess is that Incidentally, I think the error check in https://github.com/hashicorp/nomad/blob/v0.11.0/nomad/fsm.go#L1174-L1176 is dead code. We already check for error nilness earlier. |
On reflection, it's probably not the best approach... the dangers of hasty patches.
You're right there... I think was an unfortunate design artifact from the original pass at the GC process that we never really cleaned up. At this point
Agreed. |
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. Ship it!
@notnoop I've given this a smoke test in e2e as follows:
|
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. |
For #7712
Although #7708 has a longer-term fix, this patch should prevent a reported panic.