Skip to content

refactor(consumer): log retries at Warn and keep one line per delivery - #1145

Open
sbalabanov wants to merge 1 commit into
mainfrom
log/1c-consumer-levels
Open

sbalabanov wants to merge 1 commit into
mainfrom
log/1c-consumer-levels

Conversation

@sbalabanov

@sbalabanov sbalabanov commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

TLDR: The consumer framework now logs expected failures (user errors, retries, shutdown cancels) at lower severity, and each delivery logs one outcome line.

Changes

  • Remove the "registered controller" and "processing delivery" lines; dropping the per-delivery "processing delivery" line means each delivery logs one outcome line.
  • "message processed successfully" now carries the delivery owner fields (leased_by, consumer_group).
  • Non-retryable rejects log at Warn for user errors and Error otherwise.
  • Retryable nacks log at Warn, or Debug when the cause is context.Canceled.
  • Tests: add a table test asserting outcome-line level per error class (the canceled case goes through the generic classifier), and remove the "processing delivery" assertions and the now-redundant leased-by test.

Test Plan

  • bazel test //platform/consumer/... (passes)
  • make fmt, make lint, make check-gazelle, make check-tidy on a staged tree (pass)

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sbalabanov
sbalabanov force-pushed the log/1c-consumer-levels branch from beb9984 to 5a5292c Compare November 25, 2026 23:52
@sbalabanov
sbalabanov marked this pull request as ready for review November 25, 2026 23:53
@sbalabanov
sbalabanov requested review from a team as code owners November 25, 2026 23:53

This branch has not been deployed

No deployments
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.

1 participant