provectus / kafka-ui

Open-Source Web UI for Apache Kafka Management
Apache License 2.0
9.81k stars 1.19k forks source link

Broker version doesn't change without kafka ui restart #3749

Closed timchenko-a closed 1 year ago

timchenko-a commented 1 year ago

Issue submitter TODO list

Describe the bug (actual behavior)

Kafka UI doesn't automatically update broker version information is case of broker is updated. It requires kafka ui restart.

Expected behavior

Broker is updated -> kafka ui automatically detects new version.

Your installation details

  1. Kafka UI version: ef0dacb v0.6.1
  2. No, I run just like a plain jar on EC2, systemd managed.
  3. The next command is used to run kafka-ui: java -Xmx512M -Xms512M -Dspring.config.additional-location=/opt/config.yaml --add-opens java.rmi/javax.rmi.ssl=ALL-UNNAMED -jar /opt/kafka-ui.jar /opt/config.yaml content(only 1 cluster here, we have more, but config is pretty much the same everywhere):
    ---
    kafka:
    clusters:
    - name: CLUSTER_NAME
      bootstrapServers: SERVER_1_URL:9093,SERVER_2_URL:9093,SERVER_3_URL:9093
      readonly: true
      properties:
        security:
          protocol: SASL_PLAINTEXT
        sasl:
          mechanism: SCRAM-SHA-256
          jaas:
            config: 'org.apache.kafka.common.security.scram.ScramLoginModule required username="USERNAME" password="PASSWORD";'
      schemaRegistry: http://SCHEMA_REGISTRY_URL:8081

Steps to reproduce

Setup kafka cluster, non-latest version; Add it to kafka UI. It will detect cluster's version correctly; Upgrade kafka cluster; Check broker version in kafka UI, it will stay the same; Restart kafka UI, now new broker version will be detected.

Screenshots

No response

Logs

No response

Additional context

Want to understand it it's a bug, or an expected behaviour :)

github-actions[bot] commented 1 year ago

Hello there timchenko-a! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

iliax commented 1 year ago

Hello @timchenko-a , thank you for raising it can't say that it is a bug, but its better to update version (and version-related) info from time to time. will be implemented within #3764