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/06/27 07:55:48 UTC
[incubator-iotdb] branch feature_async_close_tsfile updated: fix
test compile problem
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 7a1638d fix test compile problem
7a1638d is described below
commit 7a1638db466b735704560511dfd5e47d78d8a39e
Author: qiaojialin <64...@qq.com>
AuthorDate: Thu Jun 27 15:55:31 2019 +0800
fix test compile problem
---
.../filenodeV2/UnsealedTsFileProcessorV2Test.java | 2 +-
.../db/utils/datastructure/LongTVListTest.java | 30 ++++++++++++++++++++++
2 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/iotdb/src/test/java/org/apache/iotdb/db/engine/filenodeV2/UnsealedTsFileProcessorV2Test.java b/iotdb/src/test/java/org/apache/iotdb/db/engine/filenodeV2/UnsealedTsFileProcessorV2Test.java
index 6d7619c..24b6d6c 100644
--- a/iotdb/src/test/java/org/apache/iotdb/db/engine/filenodeV2/UnsealedTsFileProcessorV2Test.java
+++ b/iotdb/src/test/java/org/apache/iotdb/db/engine/filenodeV2/UnsealedTsFileProcessorV2Test.java
@@ -157,7 +157,7 @@ public class UnsealedTsFileProcessorV2Test {
String deviceId = startTime.getKey();
resource.getEndTimeMap().put(deviceId, resource.getStartTimeMap().get(deviceId));
}
- resource.close(true);
+ resource.close();
}
}, ()->true);
diff --git a/iotdb/src/test/java/org/apache/iotdb/db/utils/datastructure/LongTVListTest.java b/iotdb/src/test/java/org/apache/iotdb/db/utils/datastructure/LongTVListTest.java
new file mode 100644
index 0000000..4d9e0fa
--- /dev/null
+++ b/iotdb/src/test/java/org/apache/iotdb/db/utils/datastructure/LongTVListTest.java
@@ -0,0 +1,30 @@
+package org.apache.iotdb.db.utils.datastructure;
+
+import org.apache.iotdb.db.engine.memtable.WritableMemChunk;
+import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
+import org.junit.Test;
+
+public class LongTVListTest {
+
+ @Test
+ public void testLongTVListInsertTime() {
+
+ long start = System.currentTimeMillis();
+ LongTVList tvList = new LongTVList();
+ for (long i = 0; i < 1000000; i ++) {
+ tvList.putLong(i, i);
+ }
+ start = System.currentTimeMillis() - start;
+ System.out.println("tvList insert time: " + start);
+
+ long time = System.currentTimeMillis();
+ WritableMemChunk writableMemChunk = new WritableMemChunk(TSDataType.INT64);
+ for (long i = 0; i < 1000000; i ++) {
+ writableMemChunk.putLong(i, i);
+ }
+
+ time = System.currentTimeMillis() - time;
+ System.out.println("writable memchunk insert time: " + time);
+ }
+
+}
\ No newline at end of file