[
https://issues.apache.org/jira/browse/KAFKA-3140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15113231#comment-15113231
]
ASF GitHub Bot commented on KAFKA-3140:
---------------------------------------
GitHub user SinghAsDev opened a pull request:
https://github.com/apache/kafka/pull/805
KAFKA-3140: Fix PatternSyntaxException and hand caused by it in Mirro…
Fix PatternSyntaxException and hand caused by it in MirrorMaker on passing
invalid java regex string as whitelist
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/SinghAsDev/kafka KAFKA-3140
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/805.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #805
----
commit 0f120f976ce66e37cb5180df2b024def1cfcd6bb
Author: Ashish Singh <[email protected]>
Date: 2016-01-22T22:22:05Z
KAFKA-3140: Fix PatternSyntaxException and hand caused by it in MirrorMaker
on passing invalid java regex string as whitelist.
----
> PatternSyntaxException thrown in MM, causes MM to hang
> ------------------------------------------------------
>
> Key: KAFKA-3140
> URL: https://issues.apache.org/jira/browse/KAFKA-3140
> Project: Kafka
> Issue Type: Bug
> Components: tools
> Reporter: Ashish K Singh
> Assignee: Ashish K Singh
>
> On passing an invalid java regex string as whitelist to MM,
> PatternSyntaxException is thrown and MM hangs. Below is relevant ST.
> {code}
> 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)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)