Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9913

TopologyDescription should expose all topic name progrematically

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • streams

    Description

      During the discussion of KIP-594, it became clear that it is helpful for testing purpose to verify which topics are used in a topology (ie, all user input and output topics, as well as internal topics like repartiton or changelog topics).

      While the current `TopologyDescription` does expose this information (only changelog topic names are missing atm), there is no convenient way to get all topic names at once, but one must traverse the nodes of each sub-topology to collect this information manually.

      Hence, the proposal is to add utility methods to `TopologyDescription` that expose this information programatically. As this is a public API change, it will be required to write a KIP (https://cwiki.apache.org/confluence/display/KAFKA/Kafka+Improvement+Proposals)

      KIP-598: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=148648762

      Attachments

        Issue Links

          Activity

            People

              guozhang Guozhang Wang
              mjsax Matthias J. Sax
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: