Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-3954

Topic is not successfully created without "spec:" in KafkaTopic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.5.0.GA
    • 2.0.1.GA
    • topic-operator
    • None
    • False
    • None
    • False

      • Although the oc command successfully returned, the topic is not successfully created without "spec:" part in a Kafka Topic yaml. 
      • I guess, the following solutions could be considered:
        • Change "spec" field as required in the Kafka Topic CRD(043-Crd-kafkatopic.yaml)
        • Create a topic in a Kafka cluster even if "spec" field is not specified in a Kafka Topic yaml.
      • As a workaround:
        • By using "spec: {}" instead of removing "spec:", KafkaTopic will be created successfully.
      • For example, when trying to create "call-detail-records" topic, "oc create" command finished successfully. But the topic does not show "True" for "READY".
        $ cat call-detail-records-topic.yaml
        apiVersion: kafka.strimzi.io/v1beta2
        kind: KafkaTopic
        metadata:
        name: call-detail-records
        labels:
        strimzi.io/cluster: my-cluster
        
        $ oc create -f call-detail-records-topic.yaml
        kafkatopic.kafka.strimzi.io/call-detail-records created
        
        $ oc get kafkatopics call-detail-records
        NAME CLUSTER PARTITIONS REPLICATION FACTOR READY
        call-detail-records my-cluster
        

              Unassigned Unassigned
              rhn-support-tyamashi Tomonari Yamashita
              Henrich Zrncik Henrich Zrncik
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: