-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[actor shutdown] cell state bitmask fix (#76)
### Summary When an actor shuts down, the state bitmask in the `ActorCell` is flipped from the `Context` object when a shutdown is requested. Previously this was only set within the executor. ### Motivation Part of #29 There is an asynchronous delay between an actor signaling it is shutting down to when the executor sets the state. This is because the request travels through the runtime manager and then back to the executor via async channel communications. What is described above introduces a window where an actor has signaled shutdown and continues to receive messages. By setting the shutdown flag directly within the actor (as well as within the executor), messages processing by the actor will stop immediately. ### Test Plan Shutdown testing will be covered in the broader actor shutdown effort.
- Loading branch information
1 parent
7372322
commit b979f87
Showing
3 changed files
with
30 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
"roadmap" | ||
], | ||
"userWords": [ | ||
"bitmask", | ||
"busan", | ||
"cpus", | ||
"geoip", // "geo" "IP" | ||
|
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