diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-08-10 16:40:06 +0200 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-08-10 16:40:06 +0200 |
commit | cdbc98f63ec674317fd1de87dc81a49a1b38a0f5 (patch) | |
tree | 2fbe0e855626b44b8f15a6fd5802d57379760391 /vespa-feed-client-cli/src | |
parent | d0f96af1b204ec053e35032a678045a33b03f8b7 (diff) |
Avoid closing stderr
Diffstat (limited to 'vespa-feed-client-cli/src')
-rw-r--r-- | vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java b/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java index 768cdf4c171..bb0bf35dbce 100644 --- a/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java +++ b/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java @@ -68,7 +68,7 @@ public class CliClient { } } catch (InterruptedException | IOException ignored) { } // doesn't happen - }); + }, "progress-printer"); progressPrinter.setDaemon(true); progressPrinter.start(); } @@ -152,7 +152,7 @@ public class CliClient { } static void printBenchmarkResult(long durationNanos, OperationStats stats, OutputStream systemOut) throws IOException { - JsonFactory factory = new JsonFactory(); + JsonFactory factory = new JsonFactory().disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET); long okCount = stats.successes(); long errorCount = stats.requests() - okCount; double throughput = okCount * 1e9 / Math.max(1, durationNanos); |