Skip to content

Conversation

@tobias-wilfert
Copy link
Member

@tobias-wilfert tobias-wilfert commented Feb 11, 2026

While working on the refactor of the process_replay logic we noticed that relay-snuba-publishing-disabled is perpetually set to 100%.

This PR replaces the option with a hard coded true value and removes all the code that is dead due to this change. Specifically produce_replay_event which currently just early returns and ReplayEventKafkaMessage which is only constructed in this function. Furthermore the tests that rely on the option are also modified or removed (if they now test behaviour that is no longer possible).

Follow up:

@tobias-wilfert tobias-wilfert self-assigned this Feb 11, 2026
@tobias-wilfert tobias-wilfert marked this pull request as ready for review February 11, 2026 10:42
@tobias-wilfert tobias-wilfert requested a review from a team as a code owner February 11, 2026 10:42
start_time: safe_timestamp(received_at),
payload,
};
self.produce(KafkaTopic::ReplayEvents, KafkaMessage::ReplayEvent(message))?;
Copy link
Member

Choose a reason for hiding this comment

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

I think we can then also remove the ReplayEvents topic (and follow that up with an infra change to unconfigure the topic)

Copy link
Member Author

Choose a reason for hiding this comment

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

I think for the time that we remove it here but not yet in the infra this will error here:

|| relay_log::error!("unused topic assignment '{name}'"),
hope that does not become too spamy.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah that should happen and it's fine, this is the safest way to do it. Remove from code before removing from infra (e.g. to allow for rollbacks). In this case we could do something else considering the topic hasn't been used in a long time, but better to do it the 'right ' way.

We could lower that message from error to warn though. It's error because we didn't used to pipe warnings into Sentry.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

start_time: safe_timestamp(received_at),
payload,
};
self.produce(KafkaTopic::ReplayEvents, KafkaMessage::ReplayEvent(message))?;
Copy link
Member

Choose a reason for hiding this comment

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

Yeah that should happen and it's fine, this is the safest way to do it. Remove from code before removing from infra (e.g. to allow for rollbacks). In this case we could do something else considering the topic hasn't been used in a long time, but better to do it the 'right ' way.

We could lower that message from error to warn though. It's error because we didn't used to pipe warnings into Sentry.

@tobias-wilfert tobias-wilfert added this pull request to the merge queue Feb 11, 2026
Copy link
Member

@jjbayer jjbayer left a comment

Choose a reason for hiding this comment

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

Might benefit from an "internal" changelog because it will change behavior in self-hosted.

@tobias-wilfert tobias-wilfert removed this pull request from the merge queue due to a manual request Feb 11, 2026
@tobias-wilfert tobias-wilfert added this pull request to the merge queue Feb 11, 2026
Merged via the queue into master with commit 9900c2d Feb 11, 2026
29 checks passed
@tobias-wilfert tobias-wilfert deleted the tobias-wilfert/feat/hard-code-relay_snuba_publish_disabled branch February 11, 2026 14:22
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