This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch rel/1.2
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/1.2 by this push:
new 7eb8b5c986b [To Rel/1.2]Remove max pool size metric
7eb8b5c986b is described below
commit 7eb8b5c986bd7cbccce86129a843bbed0f8d45f4
Author: Liu Xuxin <[email protected]>
AuthorDate: Fri Jun 2 19:26:32 2023 +0800
[To Rel/1.2]Remove max pool size metric
---
.../iotdb/commons/concurrent/ThreadPoolMetrics.java | 16 ----------------
1 file changed, 16 deletions(-)
diff --git
a/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/ThreadPoolMetrics.java
b/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/ThreadPoolMetrics.java
index 9ced16bf8aa..ee1b32c5129 100644
---
a/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/ThreadPoolMetrics.java
+++
b/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/ThreadPoolMetrics.java
@@ -34,7 +34,6 @@ public class ThreadPoolMetrics implements IMetricSet {
private static final String THREAD_POOL_DONE_TASK_COUNT =
"thread_pool_done_task_count";
private static final String THREAD_POOL_WAITING_TASK_COUNT =
"thread_pool_waiting_task_count";
private static final String THREAD_POOL_CORE_SIZE = "thread_pool_core_size";
- private static final String THREAD_POOL_MAX_POOL_SIZE =
"thread_pool_max_pool_size";
private static final String THREAD_POOL_LARGEST_POOL_SIZE =
"thread_pool_largest_pool_size";
private static final String POOL_NAME = "pool_name";
private AbstractMetricService metricService;
@@ -81,13 +80,6 @@ public class ThreadPoolMetrics implements IMetricSet {
map -> registeredPoolMap.get(name).getCompletedTaskCount(),
POOL_NAME,
name);
- metricService.createAutoGauge(
- THREAD_POOL_MAX_POOL_SIZE,
- MetricLevel.IMPORTANT,
- registeredPoolMap,
- map -> registeredPoolMap.get(name).getMaximumPoolSize(),
- POOL_NAME,
- name);
metricService.createAutoGauge(
THREAD_POOL_LARGEST_POOL_SIZE,
MetricLevel.IMPORTANT,
@@ -132,13 +124,6 @@ public class ThreadPoolMetrics implements IMetricSet {
map -> entry.getValue().getCompletedTaskCount(),
POOL_NAME,
entry.getKey());
- metricService.createAutoGauge(
- THREAD_POOL_MAX_POOL_SIZE,
- MetricLevel.IMPORTANT,
- registeredPoolMap,
- map -> entry.getValue().getMaximumPoolSize(),
- POOL_NAME,
- entry.getKey());
metricService.createAutoGauge(
THREAD_POOL_LARGEST_POOL_SIZE,
MetricLevel.IMPORTANT,
@@ -162,7 +147,6 @@ public class ThreadPoolMetrics implements IMetricSet {
MetricType.GAUGE, THREAD_POOL_WAITING_TASK_COUNT, POOL_NAME,
entry.getKey());
metricService.remove(
MetricType.GAUGE, THREAD_POOL_DONE_TASK_COUNT, POOL_NAME,
entry.getKey());
- metricService.remove(MetricType.GAUGE, THREAD_POOL_MAX_POOL_SIZE,
POOL_NAME, entry.getKey());
metricService.remove(
MetricType.GAUGE, THREAD_POOL_LARGEST_POOL_SIZE, POOL_NAME,
entry.getKey());
}