Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CHUKWA-641. Fix stack trace for dumpChunk command when invalid regula…
…r expression is specified. (Eric Spishak via Eric Yang)

git-svn-id: https://svn.apache.org/repos/asf/incubator/chukwa/trunk@1336479 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
macroadster committed May 10, 2012
1 parent 7b2c69e commit fc7cfe2cca0609a77cdb7025b6a06303eac30822
Showing 2 changed files with 9 additions and 2 deletions.
@@ -12,6 +12,8 @@ Trunk (unreleased changes)

BUGS

CHUKWA-641. Fix stack trace for dumpChunk command when invalid regular expression is specified. (Eric Spishak via Eric Yang)

CHUKWA-640. Use timer thread to schedule adatpor registration. (Abhijit Dhar via Eric Yang)

CHUKWA-636. Updated dependency to HBase 0.92.0. (Eric Yang)
@@ -81,11 +81,16 @@ static void dump(String[] args, Configuration conf, PrintStream out) throws IOEx
nosort = true;
}

Filter patterns;
Filter patterns = null;
if(args[filterArg].toLowerCase().equals("all"))
patterns = Filter.ALL;
else
patterns = new Filter(args[filterArg]);
try {
patterns = new Filter(args[filterArg]);
} catch (PatternSyntaxException pse) {
System.err.println("Error parsing \"tags\" regular expression: " + pse.getMessage());
System.exit(-1);
}

System.err.println("Patterns:" + patterns);
ArrayList<Path> filesToSearch = new ArrayList<Path>();

0 comments on commit fc7cfe2

Please sign in to comment.