Skip to content

fix: collapse the empty catch in the in-process replay state - #58

Merged
yesbert merged 1 commit into
mainfrom
fix/sonar-empty-catch-in-replay-state
Sep 4, 2026
Merged

fix: collapse the empty catch in the in-process replay state#58
yesbert merged 1 commit into
mainfrom
fix/sonar-empty-catch-in-replay-state

Conversation

@yesbert

@yesbert yesbert commented Sep 4, 2026

Copy link
Copy Markdown
Owner

What this changes

  • The nightly Sonar run of 2026-09-04 fails its quality gate on two new issues in InProcessProjectionReplayState.NotifyAsync (S108 empty block, S2486 unexplained swallowed exception), both introduced with fix: let a single-process host replay without Redis #43.
  • The filtered catch … when (logger is not null) plus a second empty catch become one catch that logs through the null-conditional operator, with a comment stating why the exception is swallowed. No behaviour changes: a failing subscriber is logged where a logger exists and never reaches the publisher either way.

How it was verified

  • Local gauntlet green (./scripts/local-gauntlet.sh)

Copilot AI lite review requested due to automatic review settings September 4, 2026 10:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@yesbert
yesbert merged commit 6152a66 into main Sep 4, 2026
5 checks passed
@yesbert
yesbert deleted the fix/sonar-empty-catch-in-replay-state branch September 4, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants