Skip to content

Commit 50cd99a

Browse files
authored
Silence OpLogDistributedReceptionist.sendAckOps timeout logs (#996)
1 parent 62e3191 commit 50cd99a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/DistributedActors/Cluster/Reception/OperationLogDistributedReceptionist.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,9 @@ extension OpLogDistributedReceptionist {
629629
try await peerReceptionistRef.ackOps(until: latestAppliedSeqNrFromPeer, by: self)
630630
} catch {
631631
switch error {
632-
case RemoteCallError.clusterAlreadyShutDown:
633-
// ignore silently; this often happens during tests when we terminate systems while interacting with them
632+
case RemoteCallError.clusterAlreadyShutDown, is TimeoutError:
633+
// ignore silently; clusterAlreadyShutDown often happens during tests when we terminate systems
634+
// while interacting with them. TimeoutErrors are also expected to happen sometimes.
634635
()
635636
default:
636637
log.error("Error: \(error)")

0 commit comments

Comments
 (0)