From ea746cdc3da12c73c322c872947aceb95f96e474 Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Thu, 14 Nov 2024 17:51:30 +0000 Subject: [PATCH] Add default case to switches Signed-off-by: Simeon Widdis --- .../opensearch/flint/core/storage/FlintOpenSearchClient.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flint-core/src/main/scala/org/opensearch/flint/core/storage/FlintOpenSearchClient.java b/flint-core/src/main/scala/org/opensearch/flint/core/storage/FlintOpenSearchClient.java index 15a69ff87..d1e49a64b 100644 --- a/flint-core/src/main/scala/org/opensearch/flint/core/storage/FlintOpenSearchClient.java +++ b/flint-core/src/main/scala/org/opensearch/flint/core/storage/FlintOpenSearchClient.java @@ -142,6 +142,8 @@ private void emitIndexCreationSuccessMetric(String indexKind) { case "mv": MetricsUtil.addHistoricGauge(String.format("%s.%s.count", MetricConstants.CREATE_MV_INDICES, "success"), 1); break; + default: + break; } } @@ -156,6 +158,8 @@ private void emitIndexCreationFailureMetric(String indexKind) { case "mv": MetricsUtil.addHistoricGauge(String.format("%s.%s.count", MetricConstants.CREATE_MV_INDICES, "failed"), 1); break; + default: + break; } } }