Skip to content

Operator throws "unable to scale down number of partition in topic" errorΒ #1126

@gabschne

Description

@gabschne

I created a simple topic:

apiVersion: cluster.redpanda.com/v1alpha2
kind: Topic
metadata:
  name: test
  namespace: redpanda
spec:
  additionalConfig:
    cleanup.policy: compact
  cluster:
    clusterRef:
      name: redpanda

The events of the created topic ressource:

Events:                                                                                                                             
  Type     Reason                             Age                     From             Message                                      
  ----     ------                             ----                    ----             -------                                      
  Warning  topicConfigurationDescribeFailure  8m43s                   TopicReconciler  describing topic configuration ([UNKNOWN_TOPIC_OR_PARTITION: This server does not host this topic-partition.[]) DescribeConfigsResponse error (%!!(MISSING)s(MISSING)): %!!(MISSING)s(MISSING)                                                                                                                        
  Warning  topicConfigurationDescribeFailure  3m15s (x17 over 8m43s)  TopicReconciler  unable to update topic ([unable to scale down number of partition in topic[]): %!!(MISSING)s(MISSING) 

Operator log:

{"level":"error","ts":"2025-10-01T20:30:37.818Z","logger":"TopicReconciler.Reconcile","msg":"failed to reconcile","controller":"topic","controllerGroup":"cluster.redpanda.com","controllerKind":"Topic","Topic":{"name":"test","namespace":"redpanda"},"namespace":"redpanda","name":"test","reconcileID":"2fd0de29-b358-43af-b84d-bcc4dd2372f9","topic":{"apiVersion":"cluster.redpanda.com/v1alpha2","kind":"Topic","namespace":"redpanda","name":"test"},"error":"unable to update topic (test): unable to scale down number of partition in topic"}                                                                                                                                                                                
{"level":"error","ts":"2025-10-01T20:30:37.818Z","msg":"Reconciler error","controller":"topic","controllerGroup":"cluster.redpanda.com","controllerKind":"Topic","Topic":{"name":"test","namespace":"redpanda"},"namespace":"redpanda","name":"test","reconcileID":"2fd0de29-b358-43af-b84d-bcc4dd2372f9","error":"unable to update topic (test): unable to scale down number of partition in topic"}

In any case, the functionality of the topic itself does not appear to be affected, which is why I am not entirely sure whether this can be considered a "bug".

However, as I can imagine that this could quickly become an unnecessary workload for the operator with a large number of topics, I thought it would be worth creating an issue.

P.S.: I promise it's my last issue (for today). πŸ˜†

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