Skip to content

Commit

Permalink
fix: fixes KeyError when running with stale topic dlq (#82512)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnagara authored Dec 21, 2024
1 parent 5bd1b24 commit d2decf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentry/consumers/dlq.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def submit(self, message: Message[KafkaPayload]) -> None:
# If we get a valid message for a partition later, don't emit a filtered message for it
if self.offsets_to_forward:
for partition in message.committable:
self.offsets_to_forward.pop(partition)
self.offsets_to_forward.pop(partition, None)

self.next_step.submit(message)

Expand Down

0 comments on commit d2decf3

Please sign in to comment.