Skip to content

Commit

Permalink
all: Suppress NotFound non-retryable stream errors
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking committed Jul 29, 2024
1 parent b98ea9c commit 1e9c11f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/events/mux/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ func (*multiplexerStore) swallowNonRetryableStreamErr(ctx context.Context, isPri
errors.IsResourceExhausted(err):
logger.Info("Stream failed with retryable error")
return err
case errors.IsNotFound(err):
logger.WithError(err).Debug("Stream failed with non-retryable error")
return nil
default:
// Other error codes are considered not retryable. They are not propagated to the caller, because that would
// cause the multiplexed subscription to fail.
Expand Down

0 comments on commit 1e9c11f

Please sign in to comment.