This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 224da329db8 Fix the scope of metric module in pom.xml (#11368)
224da329db8 is described below
commit 224da329db803c0918e2325ef3ffc6021b6300f1
Author: ZhangHongYin <[email protected]>
AuthorDate: Tue Oct 24 09:46:30 2023 +0800
Fix the scope of metric module in pom.xml (#11368)
---
iotdb-core/datanode/pom.xml | 4 +---
.../src/main/java/org/apache/iotdb/metrics/AbstractMetricService.java | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/iotdb-core/datanode/pom.xml b/iotdb-core/datanode/pom.xml
index 363ca14d8ba..dc272d74ed3 100644
--- a/iotdb-core/datanode/pom.xml
+++ b/iotdb-core/datanode/pom.xml
@@ -280,18 +280,16 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
- <!-- These two dependencies are needed at runtime -->
+ <!-- These two dependencies are needed at runtime, so please not set
test scope -->
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>dropwizard-metrics</artifactId>
<version>1.3.0-SNAPSHOT</version>
- <scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.iotdb</groupId>
<artifactId>micrometer-metrics</artifactId>
<version>1.3.0-SNAPSHOT</version>
- <scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
diff --git
a/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/AbstractMetricService.java
b/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/AbstractMetricService.java
index e2966e6c136..dff6c4b2121 100644
---
a/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/AbstractMetricService.java
+++
b/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/AbstractMetricService.java
@@ -132,7 +132,7 @@ public abstract class AbstractMetricService {
// if no more implementations, we use nothingManager.
if (size == 0 || metricManager == null) {
- LOGGER.debug("No MetricManager available, defaulting to
DoNothingMetricManager");
+ LOGGER.info("No MetricManager available, defaulting to
DoNothingMetricManager");
metricManager = new DoNothingMetricManager();
} else if (size > 1) {
LOGGER.info(