Files
nomad/.changelog/23383.txt
Tim Gross ee48bdd4d9 server: fix panic if heartbeat reset happens for GC'd node (#23383)
When setting up the timer for heartbeat invalidation, there's no control that
allows us to remove that timer when the node is GC'd. If the GC window is narrow
enough, it's possible to GC a node that has a waiting heartbeat timer. In this
case, we hit a bug where querying for the node returns `nil` and this is
incorrectly handled when checking for disconnect/reconnect state. Fix this bug
by correctly handling a `nil` node and allowing the `Node.Update` RPC to fire
normally (which then errors correctly).

Fixes: https://github.com/hashicorp/nomad/issues/23376
Ref: https://hashicorp.atlassian.net/browse/NET-10109
2024-06-20 10:05:44 -04:00

4 lines
121 B
Plaintext

```release-note:bug
server: Fixed a bug where expiring heartbeats for garbage collected nodes could panic the server
```