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

TO loop receiving MODIFIED events and creating znodes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0.GA
    • None
    • cluster-operator
    • None
    • 2019.7

      While working on the Red Hat Summit demo, I have a script which deploy an Apache Kafka cluster applying the Kafka resource file and then deploy a KafkaTopic resource for creating a couple of topics.

      Before applying the KafkaTopic YAML file, the bash script waits that the EO is rolled out using this "blocking" command:

      echo "Waiting for entity operator to be ready..."
      oc rollout status deployment/$CLUSTER-entity-operator -w -n $NAMESPACE
      echo "...entity operator ready"

      after that it runs

      oc apply -f $DIR/cluster/$CLUSTER-kafka-topics.yaml -n $NAMESPACE

      If these operations are executed in a so short time, the TO enters in a loop receiving the MODIFIED event continuously and creating znodes in a loop.

      Delaying the KafkaTopic(s) creation at the end of the script so after more time the EO is started (I deploy other monitoring stuff like Grafana and Prometheus), the problem doesn't happen.

              tbentley-1 Tom Bentley (Inactive)
              ppatiern Paolo Patierno
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: