-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migration: fix re-entrant bug (#431)
This PR fixes a rare race condition that only happened in enviornments where the same app is migrated many times. In particular, this bug only appeared when the same application migrated away from one host, and then migrated back into it. Migrating into a new host (wrt the previous scheduling decision) requires one of the migrated-to ranks to run the world initialisation to set the local-remote leaders and in-memory queues. However, the second migration above was not triggering the "new world" migration procedure because the world had lingered in the per-node registry. This bug materialised in applications having an old version of the host-port mappings, and failing to start. The fix involves knowing when we are evicting a host for a given world id, and clearing it from the registry if so.
- Loading branch information
1 parent
7304a61
commit aef8f6e
Showing
6 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters