The CR of a topic returns wrong status after decreasing partitions

Solution Verified - Updated -

Issue

  • When we decrease partitions of a topic, the CR returns wrong status.

    The status of the CR is "Ready"

    $oc get kafkatopic.kafka.strimzi.io/topictest -o yaml | yq r - 'status.conditions'
    - lastTransitionTime: "2020-04-22T15:19:48.882Z"
      status: "True"
      type: Ready
    

    However, in the "Entity operator" log, we see the following error:

    [2020-04-22 15:25:49,900] ERROR <opicOperator:1300> [oop-thread-0] Error reconciling KafkaTopic strimzi/topictest
    java.lang.Exception: Number of partitions cannot be decreased
    

Environment

  • AMQ Streams 1.4.0
  • OpenShift Container 4.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content