Skip to content

ref(attachments): Clean up objectstore rollout options#109674

Merged
jan-auer merged 3 commits intomasterfrom
ref/remove-objectstore-enable-for
Mar 3, 2026
Merged

ref(attachments): Clean up objectstore rollout options#109674
jan-auer merged 3 commits intomasterfrom
ref/remove-objectstore-enable-for

Conversation

@jan-auer
Copy link
Member

@jan-auer jan-auer commented Mar 2, 2026

Remove cached-attachment objectstore rollout options now that migration is complete, keeping only the single enable_for.attachments flag that gates whether new attachments land in objectstore or legacy storage. Note that ingestion via Relay is controlled separately.

Reprocessing is updated to always handle attachments that are already in objectstore (regardless of the flag), while still migrating V1 attachments into objectstore during reprocessing when the flag is on.

Objectstore is also added to the default devservices mode so it starts alongside the rest of the stack without needing a separate mode.

Refs FS-281

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 2, 2026
@jan-auer jan-auer force-pushed the ref/remove-objectstore-enable-for branch from 454aebb to e4cda67 Compare March 2, 2026 17:38
@jan-auer jan-auer marked this pull request as ready for review March 3, 2026 10:05
@jan-auer jan-auer requested a review from a team as a code owner March 3, 2026 10:05
@linear
Copy link

linear bot commented Mar 3, 2026

@jan-auer jan-auer force-pushed the ref/remove-objectstore-enable-for branch from e4cda67 to 812aca6 Compare March 3, 2026 10:18
@jan-auer jan-auer marked this pull request as draft March 3, 2026 10:29
@jan-auer jan-auer force-pushed the ref/remove-objectstore-enable-for branch from 2d80d0f to 2a2b1f2 Compare March 3, 2026 10:45
…flag

- Remove `objectstore.double_write.attachments` option and associated double-write
  code path from `EventAttachment.putfile`
- Remove `objectstore.enable_for.cached_attachments` option from the attachment
  cache layer; temporary attachments always use the cache now
- Re-introduce `objectstore.enable_for.attachments` (default: 0.0) to gate
  whether `EventAttachment.putfile` writes to objectstore (V2) or GCS/local
  storage (V1). Default is False in production.
- Set the option to 1.0 in test configuration so tests always exercise the
  objectstore path
- In `reprocessing2._maybe_copy_attachment_into_cache`: V2 attachments are
  handled regardless of the flag. When the flag is enabled, V1 attachments are
  migrated into objectstore (and the V1 object deleted). When the flag is
  disabled, V1 attachments are copied into the chunk-based attachment cache as
  before.
@jan-auer jan-auer force-pushed the ref/remove-objectstore-enable-for branch from 2a2b1f2 to e90a813 Compare March 3, 2026 10:53
@jan-auer jan-auer changed the title ref(attachments): Remove objectstore.enable_for.* rollout options ref(attachments): Clean up objectstore rollout options Mar 3, 2026
@jan-auer jan-auer requested a review from lcian March 3, 2026 11:15
@jan-auer jan-auer marked this pull request as ready for review March 3, 2026 11:15
Add objectstore to the default dev mode so it starts automatically,
removing the need for a separate objectstore mode. Also add it to the
taskbroker and symbolicator modes.
@jan-auer jan-auer requested review from a team as code owners March 3, 2026 12:19
@jan-auer jan-auer merged commit 2591dfd into master Mar 3, 2026
76 checks passed
@jan-auer jan-auer deleted the ref/remove-objectstore-enable-for branch March 3, 2026 13:31
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