Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cluster): Wait for flow creation before cancelling it (#3159)
* fix(cluster): Wait for flow creation before cancelling it This subtle bug could appear if a migration fails at exactly the wrong time: 1. Thread1 creates an outgoing flow and starts the migration 2. Thread1's flow fails for whatever reason 3. Thread1 attempts to cancel all flows 4. Thread2 did *not* yet create its flow 5. Thread1 skips non-existing Thread2 flow 6. Thread2 now creates the flow 7. Upon destruction of entire migration, Thread2's fiber has not been joined, crashing Dragonfly The fix is quite simple though :) Fixes #3139 * split creation and invocation
- Loading branch information