mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
While working on #25373, I noticed that the CSI hook's `Destroy` method doesn't match the interface, which means it never gets called. Because this method only cancels any in-flight CSI requests, the only impact of this bug is that any CSI RPCs that are in-flight when an alloc is GC'd on the client or a dev agent is shut down won't be interrupted gracefully. Fix the interface, but also make static assertions for all the allocrunner hooks in the production code, so that you can make changes to interfaces and have compile-time assistance in avoiding mistakes. Ref: https://github.com/hashicorp/nomad/pull/25373
4 lines
124 B
Plaintext
4 lines
124 B
Plaintext
```release-note:bug
|
|
csi: Fixed a bug where in-flight CSI RPCs would not be cancelled on client GC or dev agent shutdown
|
|
```
|