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

feat(kafka): Add the Snuba commit log compaction settings #4941

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

lynnagara
Copy link
Member

Add the compaction settings to match what we do in production.

Note: We currently have "compact" instead of "compact,delete" defined in prod, but this should be fixed.

Add the compaction settings to match what we do in production.

Note: We currently have "compact" instead of "compact,delete" defined
in prod, but this should be fixed.
@lynnagara lynnagara requested a review from a team as a code owner October 28, 2023 01:15
@lynnagara lynnagara changed the title feat: Add the Snuba commit log compaction settings feat(kafka): Add the Snuba commit log compaction settings Oct 28, 2023
@evanh
Copy link
Member

evanh commented Oct 30, 2023

Note: We currently have "compact" instead of "compact,delete" defined in prod, but this should be fixed.

Why not have this PR line up with production? Or is the plan to change production to "compact,delete"?

@lynnagara
Copy link
Member Author

Yeah, we need to change production. This caused an issue last week since we have changed the format of this topic and some years old data is never expired. Kicking this off in https://github.com/getsentry/ops/pull/8361.

lynnagara added a commit to getsentry/arroyo that referenced this pull request Oct 30, 2023
We experienced issues when deploying #295
to production. It was discovered that very old commit log entries are still present.
This is likely because the commit log topic has cleanup.policy=compact set, which
causes messages to never expire if they have a unique key.

The process of fixing this is underway: getsentry/snuba#4941
and getsentry/ops#8361

However we have to keep support for the legacy commit log format around for a while
until this work is complete.
lynnagara added a commit to getsentry/arroyo that referenced this pull request Oct 30, 2023
We experienced issues when deploying #295
to production. It was discovered that very old commit log entries are still present.
This is likely because the commit log topic has cleanup.policy=compact set, which
causes messages to never expire if they have a unique key.

The process of fixing this is underway: getsentry/snuba#4941
and getsentry/ops#8361

However we have to keep support for the legacy commit log format around for a while
until this work is complete.
@lynnagara lynnagara merged commit c1e30ef into master Oct 30, 2023
35 checks passed
@lynnagara lynnagara deleted the commit-log-compaction-settings branch October 30, 2023 21:08
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.

None yet

2 participants