aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java')
-rw-r--r--vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java4
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);