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

Pause reconciliation - minor bugs in statuses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.7.0.GA
    • 1.7.0.GA
    • None
    • None

      While testing the pause reconciliation feature, I found some minor issues in statuses of resources.

      • when we deploy resource without the annotation, status contains some observed generation (for example 1), plugins (for KafkaConnect) and another info - for example:
        status:
          conditions:
          - lastTransitionTime: 2021-03-08T13:34:38.027201Z
            status: "True"
            type: Ready
          connectorPlugins:
          - class: org.apache.kafka.connect.file.FileStreamSinkConnector
            type: sink
            version: 2.7.0
          - class: org.apache.kafka.connect.file.FileStreamSourceConnector
            type: source
            version: 2.7.0
          - class: org.apache.kafka.connect.mirror.MirrorCheckpointConnector
            type: source
            version: "1"
          - class: org.apache.kafka.connect.mirror.MirrorHeartbeatConnector
            type: source
            version: "1"
          - class: org.apache.kafka.connect.mirror.MirrorSourceConnector
            type: source
            version: "1"
          labelSelector: strimzi.io/cluster=my-cluster-1804397052,strimzi.io/name=my-cluster-1804397052-connect,strimzi.io/kind=KafkaConnect
          observedGeneration: 1
          replicas: 1
          url: http://my-cluster-1804397052-connect-api.reconciliation-cluster-test.svc:8083
        

         example status of KafkaConnect
        but when we add the pause annotation, status contains just this:

        status:
          conditions:
          - lastTransitionTime: 2021-03-08T13:34:54.435575Z
            status: "True"
            type: ReconciliationPaused
          observedGeneration: 0
          replicas: 0

        example status of KafkaConnect

      • after adding the pause annotation to KafkaConnector, status contains extra "status type":
        status:
          conditions:
          - lastTransitionTime: 2021-03-08T13:29:36.285227Z
            status: "True"
            type: Ready
          - lastTransitionTime: 2021-03-08T13:29:36.284901Z
            status: "True"
            type: ReconciliationPaused
          connectorStatus: {}
          observedGeneration: 1
          tasksMax: 2
          topics: []
        

        example status of KafkaConnector
        other info is correct, but I guess that there should be just one status type -> like in Kafka etc.

              sknot@redhat.com Stanislav Knot (Inactive)
              lkral Lukas Kral
              Lukas Kral Lukas Kral
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: