Skip to content

fix(consumer): Ensure backpressure is properly handled in stale message routing#83271

Merged
lynnagara merged 1 commit into
masterfrom
handle-invalid-message
Jan 11, 2025
Merged

fix(consumer): Ensure backpressure is properly handled in stale message routing#83271
lynnagara merged 1 commit into
masterfrom
handle-invalid-message

Conversation

@lynnagara

Copy link
Copy Markdown
Member

Previously we were not handling the case where a MessageRejected error which signals backpressure from downstream steps might be received in the dlq stale messages strategy. If this happens we can just ignore the error, we will retry on the next loop.

…ge handling

Previously we were not handling the case where a `MessageRejected`
error which signals backpressure from downstream steps might be received
in the dlq stale messages strategy. If this happens we can just ignore the
error, we will retry on the next loop.
@lynnagara lynnagara requested review from a team as code owners January 10, 2025 21:52
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 10, 2025
@codecov

codecov Bot commented Jan 10, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/consumers/dlq.py 14.28% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #83271       +/-   ##
===========================================
+ Coverage   71.29%   87.55%   +16.26%     
===========================================
  Files        9472     9477        +5     
  Lines      537229   537627      +398     
  Branches    21163    21163               
===========================================
+ Hits       383001   470708    +87707     
+ Misses     153870    66561    -87309     
  Partials      358      358               

@lynnagara lynnagara merged commit 5f9a15d into master Jan 11, 2025
@lynnagara lynnagara deleted the handle-invalid-message branch January 11, 2025 00:12
andrewshie-sentry pushed a commit that referenced this pull request Jan 22, 2025
…ge routing (#83271)

Previously we were not handling the case where a `MessageRejected` error
which signals backpressure from downstream steps might be received in
the dlq stale messages strategy. If this happens we can just ignore the
error, we will retry on the next loop.
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants