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 2019/07/01 01:37:05 UTC

[incubator-iotdb] branch feature_async_close_tsfile updated: add time comsumption in DirectoryManager

This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch feature_async_close_tsfile
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/feature_async_close_tsfile by this push:
     new 1970849  add time comsumption in DirectoryManager
     new 91d9c69  Merge remote-tracking branch 'origin/feature_async_close_tsfile' into feature_async_close_tsfile
1970849 is described below

commit 197084961884e11d597119aed2168ab63e2f6f16
Author: qiaojialin <64...@qq.com>
AuthorDate: Mon Jul 1 09:36:22 2019 +0800

    add time comsumption in DirectoryManager
---
 .../org/apache/iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/iotdb/src/main/java/org/apache/iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java b/iotdb/src/main/java/org/apache/iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java
index 2aac48f..4236d3e 100755
--- a/iotdb/src/main/java/org/apache/iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/engine/filenodeV2/FileNodeProcessorV2.java
@@ -307,11 +307,14 @@ public class FileNodeProcessorV2 {
 
   private UnsealedTsFileProcessorV2 createTsFileProcessor(boolean sequence) throws IOException {
     String baseDir;
+    long start = System.currentTimeMillis();
     if (sequence) {
       baseDir = DirectoryManager.getInstance().getNextFolderForSequenceFile();
     } else {
       baseDir = DirectoryManager.getInstance().getNextFolderForUnSequenceFile();
     }
+    start = System.currentTimeMillis() - start;
+    LOGGER.info("getNextFolder in Directory manager cost: {}", start);
     new File(baseDir, storageGroupName).mkdirs();
 
     String filePath = Paths.get(baseDir, storageGroupName,