fix(runtime): swallow self SubscriptionFailed too (symmetric to SubscriptionEstablished)
This commit is contained in:
@@ -237,6 +237,10 @@ public sealed class DriverInstanceActor : ReceiveActor, IWithTimers
|
||||
Receive<SubscriptionEstablished>(msg =>
|
||||
_log.Debug("DriverInstance {Id}: subscription established ({Count} refs, {Diag})",
|
||||
_driverInstanceId, msg.ReferenceCount, msg.DiagnosticId));
|
||||
// Symmetric to the SubscriptionEstablished swallow: a failed self-resubscribe replies SubscriptionFailed
|
||||
// to Self (HandleSubscribeAsync already logged the underlying cause). Swallow it so it doesn't dead-letter.
|
||||
Receive<SubscriptionFailed>(msg =>
|
||||
_log.Debug("DriverInstance {Id}: resubscribe reported failure: {Reason}", _driverInstanceId, msg.Reason));
|
||||
Receive<HealthPollTick>(_ => PublishHealthSnapshot());
|
||||
}
|
||||
|
||||
@@ -274,6 +278,10 @@ public sealed class DriverInstanceActor : ReceiveActor, IWithTimers
|
||||
Receive<SubscriptionEstablished>(msg =>
|
||||
_log.Debug("DriverInstance {Id}: subscription established ({Count} refs, {Diag})",
|
||||
_driverInstanceId, msg.ReferenceCount, msg.DiagnosticId));
|
||||
// Symmetric to the SubscriptionEstablished swallow: a failed self-resubscribe replies SubscriptionFailed
|
||||
// to Self (HandleSubscribeAsync already logged the underlying cause). Swallow it so it doesn't dead-letter.
|
||||
Receive<SubscriptionFailed>(msg =>
|
||||
_log.Debug("DriverInstance {Id}: resubscribe reported failure: {Reason}", _driverInstanceId, msg.Reason));
|
||||
Receive<HealthPollTick>(_ => PublishHealthSnapshot());
|
||||
}
|
||||
|
||||
@@ -300,6 +308,10 @@ public sealed class DriverInstanceActor : ReceiveActor, IWithTimers
|
||||
Receive<SubscriptionEstablished>(msg =>
|
||||
_log.Debug("DriverInstance {Id}: subscription established ({Count} refs, {Diag})",
|
||||
_driverInstanceId, msg.ReferenceCount, msg.DiagnosticId));
|
||||
// Symmetric to the SubscriptionEstablished swallow: a failed self-resubscribe replies SubscriptionFailed
|
||||
// to Self (HandleSubscribeAsync already logged the underlying cause). Swallow it so it doesn't dead-letter.
|
||||
Receive<SubscriptionFailed>(msg =>
|
||||
_log.Debug("DriverInstance {Id}: resubscribe reported failure: {Reason}", _driverInstanceId, msg.Reason));
|
||||
Receive<HealthPollTick>(_ => PublishHealthSnapshot());
|
||||
Timers.StartPeriodicTimer("retry-connect", RetryConnect.Instance, _reconnectInterval);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user