You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by up...@apache.org on 2018/11/30 00:32:58 UTC
[geode-benchmarks] branch develop updated: Actually flushing the
results from the analyzer
This is an automated email from the ASF dual-hosted git repository.
upthewaterspout pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-benchmarks.git
The following commit(s) were added to refs/heads/develop by this push:
new ee9af19 Actually flushing the results from the analyzer
ee9af19 is described below
commit ee9af1977681b59e125257c816ad50f05bb2638a
Author: Dan Smith <up...@apache.org>
AuthorDate: Thu Nov 29 16:31:40 2018 -0800
Actually flushing the results from the analyzer
The analyzer was not flushing the writer before exiting, resulting in
not seeing any output when calling analyzeRun
Co-Authored-By: Brian Rowe <br...@pivotal.io>
---
.../java/org/apache/geode/perftest/analysis/BenchmarkRunResult.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/harness/src/main/java/org/apache/geode/perftest/analysis/BenchmarkRunResult.java b/harness/src/main/java/org/apache/geode/perftest/analysis/BenchmarkRunResult.java
index 43e0ff8..07d4c41 100644
--- a/harness/src/main/java/org/apache/geode/perftest/analysis/BenchmarkRunResult.java
+++ b/harness/src/main/java/org/apache/geode/perftest/analysis/BenchmarkRunResult.java
@@ -14,6 +14,7 @@
*/
package org.apache.geode.perftest.analysis;
+import java.io.IOException;
import java.io.PrintWriter;
import java.io.Serializable;
import java.io.Writer;
@@ -29,7 +30,7 @@ public class BenchmarkRunResult implements Serializable {
return benchmarkResult;
}
- public void writeResult(Writer output) {
+ public void writeResult(Writer output) throws IOException {
PrintWriter stream = new PrintWriter(output);
for (BenchmarkResult benchmarkResult : benchmarkResults) {
stream.println("-- " + benchmarkResult.name + " --");
@@ -42,6 +43,8 @@ public class BenchmarkRunResult implements Serializable {
stream.println();
}
}
+
+ output.flush();
}
static class BenchmarkResult implements Serializable {