Skip to content
Permalink
Browse files
GEODE-10296: Prevent JVM exit on parser error. (#168)
Configure HistogramLogProcessor to throw exceptions rather than exit.
  • Loading branch information
pivotal-jbarrett committed May 24, 2022
1 parent 4c23d3c commit 4ffee41659f41e745066776e0213fa2f58408b7a
Showing 1 changed file with 4 additions and 3 deletions.
@@ -51,12 +51,13 @@ public void accept(Histogram histogram) {
writer.close();
}
HistogramLogProcessor histogramLogProcessor =
new HistogramLogProcessor(new String[] {"-i", outputFile.getAbsolutePath(), "-o",
new HistogramLogProcessor(new String[] {"-v", "-i", outputFile.getAbsolutePath(), "-o",
outputHDRFile.getAbsolutePath()});
histogramLogProcessor.run();
HistogramLogProcessor histogramLogProcessorCSV =
new HistogramLogProcessor(new String[] {"-csv", "-i", outputFile.getAbsolutePath(), "-o",
outputCSVFile.getAbsolutePath()});
new HistogramLogProcessor(
new String[] {"-v", "-csv", "-i", outputFile.getAbsolutePath(), "-o",
outputCSVFile.getAbsolutePath()});
histogramLogProcessorCSV.run();
} catch (FileNotFoundException e) {
throw new UncheckedIOException(e);

0 comments on commit 4ffee41

Please sign in to comment.