From 1bda5446d54b45fd9c28b78e6348cc05554c60d2 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Fri, 15 Dec 2023 23:10:48 -0600 Subject: [PATCH] provide better diagnostics for interrupted annotation post --- .../io/nosqlbench/engine/clients/grafana/GrafanaClient.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine-clients/src/main/java/io/nosqlbench/engine/clients/grafana/GrafanaClient.java b/engine-clients/src/main/java/io/nosqlbench/engine/clients/grafana/GrafanaClient.java index 947a9012d..9edfbd05d 100644 --- a/engine-clients/src/main/java/io/nosqlbench/engine/clients/grafana/GrafanaClient.java +++ b/engine-clients/src/main/java/io/nosqlbench/engine/clients/grafana/GrafanaClient.java @@ -203,6 +203,8 @@ public class GrafanaClient { try { HttpRequest request = rqb.build(); response = client.send(request, HttpResponse.BodyHandlers.ofString()); + } catch (InterruptedException ie) { + logger.warn("The annotation client was interrupted while submitting a request."); } catch (Exception e) { if (e.getMessage()!=null && e.getMessage().contains("WWW-Authenticate header missing")) { throw new RuntimeException("Java HttpClient was not authorized, and it saw no WWW-Authenticate header" +