-
-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify unmuting of senders logic #3289
Conversation
This commit removes an unecessary stack when unmuting actors that may have been muted due to sending messages to an overload or muted actor.
Marked as |
I think I remember why the stack exists: commented in #3287 (comment)
If we unmute before
then an actor could be rescheduled, send messages, get muted again and end up in more than 1 mute map. ** i think ** |
Yeah, the stack separation is needed Dipin. Per the reason above. This should be closed. A comment stating why the stack exists, should be added to be more clear than my not at all clear comment that was originally put in. |
@SeanTAllen i'm trying to follow the code and i'm not seeing the issue you mention about an actor ending up in more than one mutemap. it is very likely i'm missing something obvious. the following is what i'm able to understand (in relation to the modified code in this PR):
it is very possible that i'm misunderstanding or missing something. it is also possible, that there is some other issue that i'm not understanding that having the stack resolves. either way, i would appreciate it if you could correct any misunderstandings or gaps in my understanding. my plan is that once i understand the nuances that i can properly document why the stack is needed or if it is not needed, we can remove it and document whatever else might need to be documented in terms of deadlocks and race conditions in relation to the backpressure/muting logic. |
@dipinhora I'll review your comments when I get back from vacation later in the month. |
@SeanTAllen okey dokey. have fun vacating. |
@dipinhora i clearly dropped the ball on this and then forgot the ball even existed. I'll get on that sometime, hopefully soon-ish. |
@Theodus as you have been doing lots of work in the area of backpressure, can you give this a review and decide if we should move forward or not? |
Superseded by #4151 |
This commit removes an unecessary stack when unmuting actors that
may have been muted due to sending messages to an overload or
muted actor.