Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kafka-headers): Make transaction forwarder header relevant #29618

Merged
merged 2 commits into from
Oct 28, 2021

Conversation

nikhars
Copy link
Member

@nikhars nikhars commented Oct 27, 2021

Context

We started sending the kafka header called transaction_forwarder with the value set to False in this #28908. The motivation was to start having the headers from the producer side so that we can deploy the transactions post process forwarder come online and catchup with the kafka offsets. The transactions post process forwarder was deployed using https://github.com/getsentry/ops/pull/4048. The kafka offsets have caught up. It's time to make the header value relevant so that errors forwarder only processes error messages and transactions forwarder starts processing transaction messages.

Test

The offsets being processed by the 2 forwarders are mutually exclusive.
Errors post process forwarder logs with offsets being processed
19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16000 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16001 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16003 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16004 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16007 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16008 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16009 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16010 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16011 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16012 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16014 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16017 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16018 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16019 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16021 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16023 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16024 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16026 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16027 offset 19:01:49 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16030 offset
Transactions post process forwarder logs with offsets being processed
19:01:48 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16002 offset 19:01:48 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16005 offset 19:01:48 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16006 offset 19:01:48 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16013 offset 19:01:48 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16015 offset 19:01:48 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16016 offset 19:01:48 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16020 offset 19:01:48 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16022 offset 19:01:48 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16025 offset 19:01:51 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16028 offset 19:01:51 [INFO] sentry.eventstream.kafka.postprocessworker: Process message with 16029 offset

Now that the transaction forwarder is running in production and its
offsets have caught up with current forwarder, its time to make the
switch
@nikhars nikhars requested a review from a team as a code owner October 27, 2021 21:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants