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

PatternSyntaxException thrown in MM, causes MM to hang

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0.0
    • Component/s: tools
    • Labels:
      None

      Description

      On passing an invalid java regex string as whitelist to MM, PatternSyntaxException is thrown and MM hangs. Below is relevant ST.

      java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
      *
      ^
      	at java.util.regex.Pattern.error(Pattern.java:1955)
      	at java.util.regex.Pattern.sequence(Pattern.java:2123)
      	at java.util.regex.Pattern.expr(Pattern.java:1996)
      	at java.util.regex.Pattern.compile(Pattern.java:1696)
      	at java.util.regex.Pattern.<init>(Pattern.java:1351)
      	at java.util.regex.Pattern.compile(Pattern.java:1028)
      	at kafka.tools.MirrorMaker$MirrorMakerNewConsumer.init(MirrorMaker.scala:521)
      	at kafka.tools.MirrorMaker$MirrorMakerThread.run(MirrorMaker.scala:389)
      

        Attachments

          Activity

            People

            • Assignee:
              singhashish Ashish Singh
              Reporter:
              singhashish Ashish Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: