mirror of
https://github.com/block/buzz.git
synced 2026-11-27 19:52:31 +00:00
## Summary Community deletion checks the database's community-scoped tables against an exact list and fails closed when it finds a table it does not know. The OpenSearch indexing stack that starts at #9838 adds two such tables, `search_outbox` (migration 0106) and `search_backfill` (migration 0107). A relay from before that stack, running after those migrations, would refuse every community deletion with "community deletion catalog drift (missing=, unknown=search_backfill,search_outbox)". That happens in a mixed fleet during the rollout and after a rollback. This PR lists both tables in `PENDING_SCOPED_TABLES` and `APPROVAL_FORWARD_TABLES` in `crates/buzz-db/src/store/deletion.rs`, so a release without the tables already accepts them. Neither table has a foreign key, so purge order does not matter. Nothing else changes: the tables do not exist yet and nothing writes to them. This release must reach every relay, deletion executor and operator CLI before the migrations run. The stack's own copies of this change get dropped when it is rebased onto this. ### Related issue N/A. Prerequisite for #9838 and #9862. ### Testing The existing table-driven tests for pending tables and approval forwarding cover both new entries. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Salman Mohammed <smohammed@squareup.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>