Skip to content

chore(relocations) Add bucket_path to RelocationFile#116035

Merged
markstory merged 1 commit into
masterfrom
chore-relocation-file-path
May 21, 2026
Merged

chore(relocations) Add bucket_path to RelocationFile#116035
markstory merged 1 commit into
masterfrom
chore-relocation-file-path

Conversation

@markstory
Copy link
Copy Markdown
Member

Currently we move relocation blobs around between cells via RPC. This isn't working out so well and we want to move to a shared bucket based design.

When customers upload dumps (or when we generate on for saas relocation) we create RelocationFile instances and File blobs. While the shared bucket design avoids needing to move blobs around, and file names can be derived from the relocation.uuid, we still need RelocationFile to handle retries. Currently when a relocation is performed, the RelocationFile metadata is copied onto the new relocation. Without bucket_path we won't have a a way for a retry to find the original dump file (as its path references the old uuid).

Refs INFRENG-318

Currently we move relocation blobs around between cells via RPC. This
isn't working out so well and we want to move to a shared bucket based
design.

When customers upload dumps (or when we generate on for saas
relocation) we create `RelocationFile` instances and `File` blobs. While the shared
bucket design avoids needing to move blobs around, and file names can be
derived from the relocation.uuid, we still need `RelocationFile` to
handle retries. Currently when a relocation is performed, the
`RelocationFile` metadata is copied onto the new relocation. Without
`bucket_path` we won't have a a way for a retry to find the original
dump file (as its path references the old uuid).

Refs INFRENG-318
@markstory markstory requested review from a team as code owners May 21, 2026 17:54
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 21, 2026

INFRENG-318

@markstory markstory requested a review from a team May 21, 2026 17:55
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/1100_add_relocation_file_bucket_path.py

for 1100_add_relocation_file_bucket_path in sentry

--
-- Add field bucket_path to relocationfile
--
ALTER TABLE "sentry_relocationfile" ADD COLUMN "bucket_path" varchar NULL;

@markstory markstory merged commit b0b13d5 into master May 21, 2026
85 checks passed
@markstory markstory deleted the chore-relocation-file-path branch May 21, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants