You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/11/22 09:31:49 UTC
[iotdb] branch master updated: Fix the TIME_COST_STATISTIC thread
name (#2102)
This is an automated email from the ASF dual-hosted git repository.
qiaojialin 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 8fb3445 Fix the TIME_COST_STATISTIC thread name (#2102)
8fb3445 is described below
commit 8fb34452f52939f72a64f6fbc830bcec211f8305
Author: Benedict Jin <as...@apache.org>
AuthorDate: Sun Nov 22 17:31:36 2020 +0800
Fix the TIME_COST_STATISTIC thread name (#2102)
---
server/src/main/java/org/apache/iotdb/db/concurrent/ThreadName.java | 2 +-
.../src/main/java/org/apache/iotdb/db/cost/statistic/Measurement.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/concurrent/ThreadName.java b/server/src/main/java/org/apache/iotdb/db/concurrent/ThreadName.java
index a901ebb..c2ea604 100644
--- a/server/src/main/java/org/apache/iotdb/db/concurrent/ThreadName.java
+++ b/server/src/main/java/org/apache/iotdb/db/concurrent/ThreadName.java
@@ -42,7 +42,7 @@ public enum ThreadName {
SYNC_SERVER("Sync-Server"),
SYNC_MONITOR("Sync-Monitor"),
LOAD_TSFILE("Load TsFile"),
- TIME_COST_STATSTIC("TIME_COST_STATSTIC"),
+ TIME_COST_STATISTIC("TIME_COST_STATISTIC"),
QUERY_SERVICE("Query-ServerServiceImpl");
private String name;
diff --git a/server/src/main/java/org/apache/iotdb/db/cost/statistic/Measurement.java b/server/src/main/java/org/apache/iotdb/db/cost/statistic/Measurement.java
index a166c03..41e6307 100644
--- a/server/src/main/java/org/apache/iotdb/db/cost/statistic/Measurement.java
+++ b/server/src/main/java/org/apache/iotdb/db/cost/statistic/Measurement.java
@@ -141,7 +141,7 @@ public class Measurement implements MeasurementMBean, IService {
}
logger.info("start measurement stats module...");
service = IoTDBThreadPoolFactory.newScheduledThreadPool(
- 2, ThreadName.TIME_COST_STATSTIC.getName());
+ 2, ThreadName.TIME_COST_STATISTIC.getName());
}
public boolean addOperationLatency(Operation op, long startTime) {
@@ -251,7 +251,7 @@ public class Measurement implements MeasurementMBean, IService {
this.clearStatisticalState();
if (service.isShutdown()) {
service = IoTDBThreadPoolFactory.newScheduledThreadPool(
- 2, ThreadName.TIME_COST_STATSTIC.getName());
+ 2, ThreadName.TIME_COST_STATISTIC.getName());
}
//we have to check again because someone may change the value.
isEnableStat = IoTDBDescriptor.getInstance().getConfig().isEnablePerformanceStat();