phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-3557) Provide better error message when user tries to run multiple IT tests
Date Tue, 03 Jan 2017 18:55:58 GMT
Ted Yu created PHOENIX-3557:
-------------------------------

             Summary: Provide better error message when user tries to run multiple IT tests
                 Key: PHOENIX-3557
                 URL: https://issues.apache.org/jira/browse/PHOENIX-3557
             Project: Phoenix
          Issue Type: Improvement
            Reporter: Ted Yu
            Priority: Minor


With the following command:
{code}
bin/hbase --config /etc/hbase/conf org.apache.phoenix.end2end.End2EndTestDriver -r *index*
{code}
I got:
{code}
Exception in thread "main" java.util.regex.PatternSyntaxException: Dangling meta character
'*' near index 0
*index*
^
	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 org.apache.phoenix.end2end.End2EndTestDriver$End2EndTestFilter.setPattern(End2EndTestDriver.java:78)
	at org.apache.phoenix.end2end.End2EndTestDriver.processOptions(End2EndTestDriver.java:114)
{code}
Error message can be refined to remind user that .\* should be used in place of \*

Thanks to [~elserj] for the hint.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message