Skip to content

sql: Remove enable_multi_replica_sources feature flag#36443

Draft
jubrad wants to merge 1 commit intoMaterializeInc:mainfrom
jubrad:justin/sql-212
Draft

sql: Remove enable_multi_replica_sources feature flag#36443
jubrad wants to merge 1 commit intoMaterializeInc:mainfrom
jubrad:justin/sql-212

Conversation

@jubrad
Copy link
Copy Markdown
Contributor

@jubrad jubrad commented May 7, 2026

Summary

  • Remove the enable_multi_replica_sources dyncfg flag entirely, making multi-replica sources always enabled.
  • This eliminates the bug where ALTER CLUSTER ... SET (SIZE, REPLICATION FACTOR 1) WITH (WAIT FOR ...) bypassed the single-replica guard when enable_multi_replica_sources=false.
  • Clean up all related dead code: the contains_single_replica_objects function, CreateReplicaFailStorageObjects error variant, and guard blocks in the sequencer and planner.

Fixes SQL-212.

Test plan

  • Existing managed_cluster.slt tests pass (the guards being removed are dead code since the flag defaults to true)
  • CI passes with no compilation warnings

🤖 Generated with Claude Code

This flag was already defaulting to `true` and is no longer needed.
Removing it entirely eliminates the bug where `ALTER CLUSTER ... SET
(SIZE, REPLICATION FACTOR 1) WITH (WAIT FOR ...)` could bypass the
single-replica guard when the flag was set to `false`.

Fixes SQL-212.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant