Skip to content

Commit

Permalink
Only allow timers to execute if the grain is active or deactivating.
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond committed May 29, 2024
1 parent 628833f commit 9d9287b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Orleans.Runtime/Catalog/ActivationData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,8 @@ void ProcessPendingRequests()
message = _waitingRequests[i].Message;

// If the activation is not valid, reject all pending messages except for local-only messages.
// Local-only messages are used for internal system operations and should not be rejected.
if (State != ActivationState.Valid && !message.IsLocalOnly)
// Local-only messages are used for internal system operations and should not be rejected while the grain is valid or deactivating.
if (State != ActivationState.Valid && !(message.IsLocalOnly && State is ActivationState.Deactivating))
{
ProcessRequestsToInvalidActivation();
break;
Expand Down

0 comments on commit 9d9287b

Please sign in to comment.