From 54e2d25f6947cb2b4ffa7910ce2f53a769ffe5fd Mon Sep 17 00:00:00 2001 From: Salman Mohammed Date: Tue, 24 Nov 2026 11:40:13 -0500 Subject: [PATCH] chore(deletion): accept the search outbox and backfill tables before they exist (#9871) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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 Co-authored-by: Claude Opus 5.5 --- crates/buzz-db/src/store/deletion.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/buzz-db/src/store/deletion.rs b/crates/buzz-db/src/store/deletion.rs index 7b054e2b6d..c36fa754d1 100644 --- a/crates/buzz-db/src/store/deletion.rs +++ b/crates/buzz-db/src/store/deletion.rs @@ -160,6 +160,8 @@ pub const PENDING_SCOPED_TABLES: &[&str] = &[ "identity_retirement_actions", "identity_retirement_holds", "identity_retirement_workflows", + "search_backfill", + "search_outbox", ]; /// Tenant tables an expand migration may add between a deletion's approval @@ -176,6 +178,8 @@ pub const APPROVAL_FORWARD_TABLES: &[&str] = &[ "identity_retirement_actions", "identity_retirement_holds", "identity_retirement_workflows", + "search_backfill", + "search_outbox", ]; /// Control-plane tables with community provenance that the tenant purge does