Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-6414

Operator fails reconciliation when specific KafkaTopic exists

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 1.13.0.Final
    • 1.15.0.Final
    • Operator
    • None
    • False
    • False

    Description

      When Kubernetes instance contains KafkaTopic with configuration containing non string values, for example:

      kind: KafkaTopic
      apiVersion: kafka.strimzi.io/v1beta2
      metadata:
        name: my-topic
        labels:
          strimzi.io/cluster: my-cluster
        namespace: ksuta-test
      spec:
        partitions: 10
        replicas: 3
        config:
          retention.ms: 604800000
          segment.bytes: 1073741824
      

      then operator fails to reconcile with error:

      W1213 19:34:44.262219       1 reflector.go:436] pkg/mod/k8s.io/client-go@v0.20.7/tools/cache/reflector.go:167: watch of *v1beta2.KafkaTopic ended with: an error on the server ("unable to decode an event from the watch stream: unable to decode watch event: v1beta2.KafkaTopic.Spec: v1beta2.KafkaTopicSpec.Config: ReadString: expects \" or n, but found 6, error found in #10 byte of ...|tion.ms\":604800000,\"|..., bigger context ...|-58cef2d15427\"},\"spec\":{\"config\":{\"retention.ms\":604800000,\"segment.bytes\":1073741824},\"partitions\":|...") has prevented the request from succeeding
      E1213 19:34:45.851081       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.20.7/tools/cache/reflector.go:167: Failed to watch *v1beta2.KafkaTopic: failed to list *v1beta2.KafkaTopic: v1beta2.KafkaTopicList.Items: []v1beta2.KafkaTopic: v1beta2.KafkaTopic.Spec: v1beta2.KafkaTopicSpec.Config: ReadString: expects " or n, but found 6, error found in #10 byte of ...|tion.ms":604800000,"|..., bigger context ...|-58cef2d15427"},"spec":{"config":{"retention.ms":604800000,"segment.bytes":1073741824},"partitions":|...
      

      Attachments

        Activity

          People

            ksuta Karel Suta
            ksuta Karel Suta
            Tristan Radisson Tristan Radisson
            Tristan Radisson Tristan Radisson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: