Skip to content

[server] Stop enabling standby replicas by default for new PK tables - #4157

Merged
wuchong merged 1 commit into
apache:mainfrom
swuferhong:kv-stanbdy-hotfix
Aug 31, 2026
Merged

[server] Stop enabling standby replicas by default for new PK tables#4157
wuchong merged 1 commit into
apache:mainfrom
swuferhong:kv-stanbdy-hotfix

Conversation

@swuferhong

@swuferhong swuferhong commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #4156

The coordinator injected 'table.kv.standby-replica.enabled=true' into every newly created primary key table. The standby replica feature is only partially merged: the standby election has landed, but the hot-standby and standby bootstrap paths are still open, so the upcoming release would expose an incomplete feature to all new PK tables.

Drop the auto-enablement so the option stays absent unless a user sets it explicitly. TableConfig#isStandbyReplicaEnabled() already treats an absent option as disabled, and an empty standby list makes replicas follow the pre-standby follower path, so no other production code changes are needed. Standby replicas can still be enabled per table via ALTER TABLE.

Also reword the option description accordingly and drop the test assertions that expected the property to be injected at creation time.

Brief change log

Tests

API and Format

Documentation

AI-Contributed/Feature: 0/10
AI-Contributed/UT: 0/11

111

AI-Contributed/Feature: 0/0
AI-Contributed/UT: 0/1
@wuchong
wuchong merged commit 98adb83 into apache:main Aug 31, 2026
21 checks passed
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.

Don't enable standby replicas by default for newly created primary key tables

2 participants