Skip to content

fix: reject invalid disaggregated FE replicas#498

Merged
morningman merged 1 commit into
apache:masterfrom
Al-assad:codex/doris-23993-ddc-fe-admission
Jun 17, 2026
Merged

fix: reject invalid disaggregated FE replicas#498
morningman merged 1 commit into
apache:masterfrom
Al-assad:codex/doris-23993-ddc-fe-admission

Conversation

@Al-assad

Copy link
Copy Markdown
Member

Motivation

For a DorisDisaggregatedCluster, FE replicas must not be smaller than electionNumber. Today an invalid update such as reducing FE replicas from 2 to 1 while electionNumber is 2 can be accepted first and only corrected later during reconciliation. That delayed correction can still patch the FE StatefulSet and trigger unnecessary FE restart behavior.

Changes

  • Validate FE replicas on DorisDisaggregatedCluster create and update.
  • Reject specs where feSpec.replicas < feSpec.electionNumber.
  • Add unit coverage for invalid and valid FE replica settings.

Tests

  • go test ./api/disaggregated/v1

@Al-assad Al-assad changed the title [DORIS-23993] Reject invalid disaggregated FE replicas fix: reject invalid disaggregated FE replicas Jun 17, 2026
@morningman morningman merged commit 5e58f09 into apache:master Jun 17, 2026
1 check 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.

2 participants