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

User external listener overrides without specifying node ports triggers NPE and breaks reconciliation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.0.GA
    • None
    • None
    • None
    • 1
    • 2019.4

    Description

      When the external listener is set to `nodeport` and overrides are used without actually overriding the node port numbers, the `findAny()` call when looking for the node port configuration will fire an NPE and break the reconciliation. We need to add an additional check whether the node port is set or not.

      This is an example of the resource which triggers this bug:

      apiVersion: kafka.strimzi.io/v1alpha1
      kind: Kafka
      metadata:
        name: my-cluster
      spec:
        kafka:
          version: 2.1.0
          replicas: 3
          listeners:
            plain: {}
            tls: {}
            external:
              type: nodeport
              tls: false    
              overrides:
                brokers:
                - broker: 0
                  advertisedHost: 192.168.99.103
                - broker: 1
                  advertisedHost: 192.168.99.103
                - broker: 2
                  advertisedHost: 192.168.99.103
          config:
            offsets.topic.replication.factor: 3
            transaction.state.log.replication.factor: 3
            transaction.state.log.min.isr: 2
            log.message.format.version: "2.1"
          storage:
            type: persistent-claim
            size: 100Gi
            deleteClaim: false
        zookeeper:
          replicas: 3
          storage:
            type: persistent-claim
            size: 100Gi
            deleteClaim: false
        entityOperator:
          topicOperator: {}
          userOperator: {}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            scholzj JAkub Scholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: