Skip to content

[Bug] MetaService replicas not changed #381

@wdxxl

Description

@wdxxl

Search before asking

  • I had searched in the issues and found no similar issues.

Version

apache/doris:operator-25.4.0

What's Wrong?

Hi team,
I'm using apache/doris:operator-25.4.0, as change the replicas of MetaService, it not works as expected.

spec:
  metaService:
    replicas: 1

Refer from this code: looks like it only set as v1.DefaultMetaserviceNumber.
https://github.com/apache/doris-operator/blob/master/pkg/controller/sub_controller/disaggregated_cluster/metaservice/statefulset.go#L75-L78

Thanks

What You Expected?

Change metaService replicas will update to expacted values.

replicas := metadata.GetInt32Pointer(v1.DefaultMetaserviceNumber)
if msSpec.Replicas != nil {
	replicas = msSpec.Replicas
}

How to Reproduce?

As it may related with code issue, you can change yaml file metaService's replicas number size, after sync in k8s it not change anything.

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions