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

Kafka Streams allows you to provide strings with illegal characters for internal topic names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.11.0.0
    • None
    • None

    Description

      When using the aggregate function of the Kafka Streams DSL, I supplied the function with a name for the underlying state store that contained whitespace. The stream application ran with no error message but seemed to be hanging.

      After a lot of troubleshooting, I looked in the logs on the Kafka cluster and noticed that it was complaining about illegal characters in the log line. It turns out that an internal changelog topic had been created that contained whitespace and this was causing both Kafka and ZK to choke. I was unable to use the delete-topic command line utility as it also threw the illegal character error. In the end I had to manually delete the topics out of ZK (using an open source ZK tool because the ZK delete command was choking on any strings with spaces) and do some stuff with the offset logs.

      I am not well versed in the Kafka or Kafka Streams code, but from looking through it, I notice that InternalTopicManager does not seem to validate the names of auto-generated internal topics beyond checking for null topic names rather than using Topic.validate.

      Attachments

        Issue Links

          Activity

            People

              nthean Nikki Thean
              nthean Nikki Thean
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: