You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`hookFnNode` is a special planNode implementation that performs some
work from the given function in a new goroutine. That goroutine is
started in `startExec` and finishes when either the context is canceled
or the function completes. Previously, we didn't wait in the main
goroutine of `hookFnNode` to ensure that the worker goroutine has
exited, and this is now fixed.
Concretely, this could have led to some undefined behavior (e.g. we saw
a panic in the backup schedule execution that looks like the planner was
reset _before_ the worker goroutine had a chance to perform its job).
I briefly tried reproducing that behavior in a test but didn't succeed.
Still, it makes sense that we'd wait in the main goroutine before the
worker goroutine exits, which is now done in `hookFnNode.Close`.
Release note: None
0 commit comments