You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/11/20 07:41:55 UTC
[iotdb] branch add_insert_time created (now 9e5e670)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a change to branch add_insert_time
in repository https://gitbox.apache.org/repos/asf/iotdb.git.
at 9e5e670 add insert cost log
This branch includes the following new commits:
new 9e5e670 add insert cost log
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: add insert cost log
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch add_insert_time
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 9e5e6702ca8a7e2f6fad883edd534270ac3f3935
Author: HTHou <hh...@outlook.com>
AuthorDate: Sat Nov 20 15:41:10 2021 +0800
add insert cost log
---
.../src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java b/server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
index 37127c9..d3d3129 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
@@ -1541,7 +1541,13 @@ public class TSServiceImpl implements TSIService.Iface {
insertTabletPlan.setDataTypes(req.types);
TSStatus status = checkAuthority(insertTabletPlan, req.getSessionId());
- return status != null ? status : executeNonQueryPlan(insertTabletPlan);
+ if (status != null) {
+ return status;
+ } else {
+ status = executeNonQueryPlan(insertTabletPlan);
+ }
+ LOGGER.info("Insert time cost: {} ms", System.currentTimeMillis() - t1);
+ return status;
} catch (Exception e) {
return onNPEOrUnexpectedException(
e, "inserting tablet", TSStatusCode.EXECUTE_STATEMENT_ERROR);