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

NewTopicBuilder#config should accept Map<String, String> rather than Map<String, Object>

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      The field "config" in NewTopic is Map[String, String] but NewTopicBuilder#config accept the Map[String, Object] and then call Object#toString to convert the Map[String, Object] to Map[String, String]. That is weird since users have to trace the source code to understand how kafka generate the Map[String, String].

      we should deprecate NewTopicBuilder#config(Map[String, Object]) and add an alternative method NewTopicBuilder#config"s"(Map[String, String])

      Attachments

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: