You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2023/07/05 04:30:43 UTC
[iotdb] branch metric_exception created (now b3c44de494c)
This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a change to branch metric_exception
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at b3c44de494c finish
This branch includes the following new commits:
new b3c44de494c finish
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[iotdb] 01/01: finish
Posted by ta...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch metric_exception
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit b3c44de494c0331c45230e06eac630e260b83ece
Author: OneSizeFitQuorum <ta...@apache.org>
AuthorDate: Wed Jul 5 12:30:26 2023 +0800
finish
Signed-off-by: OneSizeFitQuorum <ta...@apache.org>
---
.../apache/iotdb/metrics/reporter/prometheus/PrometheusReporter.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/reporter/prometheus/PrometheusReporter.java b/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/reporter/prometheus/PrometheusReporter.java
index 6f17f865b52..cc96a8fb7dd 100644
--- a/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/reporter/prometheus/PrometheusReporter.java
+++ b/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/reporter/prometheus/PrometheusReporter.java
@@ -80,7 +80,9 @@ public class PrometheusReporter implements Reporter {
"/metrics",
(request, response) -> response.sendString(Mono.just(scrape()))))
.bindNow();
- } catch (Exception e) {
+ } catch (Throwable e) {
+ // catch Throwable rather than Exception here because the code above might cause a
+ // NoClassDefFoundError
httpServer = null;
LOGGER.warn("PrometheusReporter failed to start, because ", e);
return false;