From 441f9c07ab185d4326c116aa11b8c26bf4848250 Mon Sep 17 00:00:00 2001 From: "Hongbin Ma (Mahone)" Date: Fri, 14 Jun 2024 15:04:04 +0800 Subject: [PATCH] fix comiple Signed-off-by: Hongbin Ma (Mahone) --- .../main/scala/com/nvidia/spark/rapids/NvtxWithMetrics.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-plugin/src/main/scala/com/nvidia/spark/rapids/NvtxWithMetrics.scala b/sql-plugin/src/main/scala/com/nvidia/spark/rapids/NvtxWithMetrics.scala index 27b3beb3ba6..1ff3e0b0b84 100644 --- a/sql-plugin/src/main/scala/com/nvidia/spark/rapids/NvtxWithMetrics.scala +++ b/sql-plugin/src/main/scala/com/nvidia/spark/rapids/NvtxWithMetrics.scala @@ -58,7 +58,7 @@ object ThreadLocalMetrics { def onMetricsExit(gpuMetric: GpuMetric): Unit = { if (gpuMetric != NoopMetric) { if (!ThreadLocalMetrics.currentThreadMetrics.get().contains(gpuMetric)) { - throw new IllegalStateException()("Metric missing from thread local storage: " + throw new IllegalStateException("Metric missing from thread local storage: " + gpuMetric) } ThreadLocalMetrics.currentThreadMetrics.get().remove(gpuMetric)