Skip to content

ref(options): migrate query-execution / ClickHouse / cache config to sentry-options#8119

Closed
phacops wants to merge 2 commits into
claude/options-migration-deletesfrom
claude/options-migration-query-exec
Closed

ref(options): migrate query-execution / ClickHouse / cache config to sentry-options#8119
phacops wants to merge 2 commits into
claude/options-migration-deletesfrom
claude/options-migration-query-exec

Conversation

@phacops

@phacops phacops commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Superseded — the query-execution config migration was consolidated into #8118 (query-execution, cache & deletes) to keep the cross-cutting integration tests in a single PR. Closing in favor of #8118 + #8120. The Rust slice remains #8112.

🤖 Generated with Claude Code

claude added 2 commits June 26, 2026 23:21
…options

Migrate the lightweight-deletions off-peak scheduler, delete strategy, and the
bulk/single delete query paths to read runtime config from sentry-options.
Schema defaults match the prior get_*_config defaults, so behavior is unchanged
until set in sentry-options-automator.

Keys migrated in this PR:
  lw_deletions_offpeak_enabled/start/end, org_ids_delete_allowlist,
  max_parts_mutating_for_delete, permit_delete_by_attribute,
  MAX_ONGOING_MUTATIONS_FOR_DELETE, storage_deletes_enabled,
  enforce_max_rows_to_delete, lightweight_deletes_sync, lightweight_delete_mode
(lw_deletes_killswitch / lw_deletes_split_by_partition are read here too; their
schema entries were declared in the base infra PR.)

query_settings and read_through_cache.short_circuit are also declared here
because the delete tests toggle them as setup (cache bypass / query settings);
their production call sites migrate in the query-exec PR later in the stack.

Tests that toggled these via state.set_config(...) now use
sentry_options.testing.override_options(...).

Stacked on the replacer migration PR.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01U2Cu68uGZRcCVS14jcyd3E
…sentry-options

Migrate the query-execution path (db_query, ClickHouse HTTP/native clients,
result cache, physical query processors, SnQL parser limits, cluster selector,
optimize util) to read runtime config from sentry-options. Schema defaults
match the prior get_*_config defaults / sentinel-0 override semantics, so
behavior is unchanged until set in sentry-options-automator.

Keys migrated in this PR:
  enable_cache_partitioning, randomize_query_id, retry_duplicate_query_id,
  enable_bypass_cache_referrers, debug_buffer_size_bytes, cache_expiry_sec,
  ignore_clickhouse_settings_override, ignore_consistent_queries_sample_rate,
  slicing_mega_cluster_partitions, async_query_settings, query_settings_by_prefix,
  query_settings_by_referrer, optimize_parallel_threads, http_batch_join_timeout,
  simultaneous_queries_sleep_seconds, max_days, date_align_seconds,
  use.low.cardinality.processor, throw_on_uniq_select_and_having,
  function-validator.enabled, tags_hash_map_enabled, events_tags_hash_map_enabled,
  events_flags_hash_map_enabled
(query_settings / read_through_cache.short_circuit are read here too; declared
earlier in the stack by the deletes PR.)

The per-storage clickhouse_load_balancing*/clickhouse_max_insert_block_size and
quantized_rebalance map options are shared with the Rust consumers (already
migrated in the Rust PR).

Tests that toggled these via state.set_config(...) now use
sentry_options.testing.override_options(...).

Stacked on the deletes migration PR.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01U2Cu68uGZRcCVS14jcyd3E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants