Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #23376 Ref: https://hashicorp.atlassian.net/browse/NET-10109
- Loading branch information