Repository navigation
chore(deletion): accept the outbox table before it exists - #10085
Closed
TheSentinel454 wants to merge 2 commits into
Closed
TheSentinel454 wants to merge 2 commits into
TheSentinel454 wants to merge 2 commits into
Conversation
The generic outbox adds a tenant-owned `outbox` table with a `community_id` column. Community deletion compares the live catalog with an exact list, so a relay without this change would refuse every community deletion once the outbox migration runs. List `outbox` in `PENDING_SCOPED_TABLES` and `APPROVAL_FORWARD_TABLES`. Nothing else changes: the table does not exist yet and nothing writes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Luke Tornquist <tornquist@squareup.com>
TheSentinel454
force-pushed
the
elrond/buzz-803-outbox-pending-table
branch
from
December 1, 2026 21:39
f999920 to
905b4ad
Compare
TheSentinel454
marked this pull request as ready for review
December 1, 2026 21:39
TheSentinel454
requested review from
bradseiler,
ravarora2,
salman1993 and
wpfleger96
as code owners
December 1, 2026 21:39
🔐 Codex Security Review
Review SummaryOverall Risk: NONE
FindingsNo concrete security, correctness, or reliability findings were identified. Notes
Generated by Codex Security Review | |
The pending-table test read its table names from PENDING_SCOPED_TABLES, so a missing or misspelled entry still passed. List the names in the test and check them against the production list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Luke Tornquist <tornquist@squareup.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The generic outbox adds a tenant-owned
outboxtable with acommunity_idcolumn. Community deletion compares the live catalog with an exact list of tables and fails closed on a table it does not know. A relay without this change, running after the outbox migration, would refuse every community deletion with "community deletion catalog drift (missing=, unknown=outbox)". That happens in a mixed fleet during the rollout and after a rollback.This PR lists
outboxinPENDING_SCOPED_TABLESandAPPROVAL_FORWARD_TABLESincrates/buzz-db/src/store/deletion.rs, as #9871 did for the search tables. The table has no foreign keys, so purge order does not matter. Nothing else changes: the table does not exist yet and nothing writes to it.This release must reach every relay, deletion executor and operator CLI before the outbox migration runs (
docs/database.md, "Checklist: adding a tenant-ownedcommunity_idtable").What got simpler
Nothing yet. This is the required first step. The outbox it prepares for will replace five single-purpose queue tables.
Testing
The existing table-driven tests for pending tables and approval forwarding cover the new entry.
🤖 Generated with Claude Code