Skip to content

[server] Add table-level config for standby replica with ALTER TABLE support#3257

Open
swuferhong wants to merge 1 commit intoapache:mainfrom
swuferhong:add-option-for-standby
Open

[server] Add table-level config for standby replica with ALTER TABLE support#3257
swuferhong wants to merge 1 commit intoapache:mainfrom
swuferhong:add-option-for-standby

Conversation

@swuferhong
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3253

Introduce table.kv.standby-replica.enabled config option to control standby replica assignment per table:

  • New PK tables: automatically set to true via applySystemDefaults()
  • Legacy PK tables (created before this option): treated as disabled
  • Can be dynamically toggled via ALTER TABLE for PK tables
  • ALTER on non-PK tables throws InvalidAlterTableException

Brief change log

Tests

API and Format

Documentation

@swuferhong swuferhong force-pushed the add-option-for-standby branch 2 times, most recently from 7f17bf4 to 741c17d Compare May 6, 2026 11:48
@swuferhong swuferhong force-pushed the add-option-for-standby branch from 741c17d to 5071505 Compare May 6, 2026 12:14
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.

[kv] Add table configuration option to control standby replicas for backward compatibility

1 participant