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/06/28 14:13:26 UTC
[iotdb] branch master updated: Fix DataMigrationExample OOM if
migrate too many timeseries (#3461)
This is an automated email from the ASF dual-hosted git repository.
haonan 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 8b930eb Fix DataMigrationExample OOM if migrate too many timeseries (#3461)
8b930eb is described below
commit 8b930eba901ef02d9c89a9fa21a7c594a4329980
Author: Haonan <hh...@outlook.com>
AuthorDate: Mon Jun 28 22:13:05 2021 +0800
Fix DataMigrationExample OOM if migrate too many timeseries (#3461)
---
.../src/main/java/org/apache/iotdb/DataMigrationExample.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/example/session/src/main/java/org/apache/iotdb/DataMigrationExample.java b/example/session/src/main/java/org/apache/iotdb/DataMigrationExample.java
index 4ef8b10..251a36e 100644
--- a/example/session/src/main/java/org/apache/iotdb/DataMigrationExample.java
+++ b/example/session/src/main/java/org/apache/iotdb/DataMigrationExample.java
@@ -89,7 +89,7 @@ public class DataMigrationExample {
int count = 0;
while (schemaIter.next()) {
count++;
- Path currentPath = new Path(schemaIter.getString("timeseries"));
+ Path currentPath = new Path(schemaIter.getString("timeseries"), true);
Future future =
executorService.submit(
new LoadThread(
@@ -122,14 +122,14 @@ public class DataMigrationExample {
this.measurement = series.getMeasurement();
this.dataType = dataType;
this.series = series;
- List<IMeasurementSchema> schemaList = new ArrayList<>();
- schemaList.add(new MeasurementSchema(measurement, dataType));
- tablet = new Tablet(device, schemaList, 300000);
}
@Override
public Void call() {
+ List<IMeasurementSchema> schemaList = new ArrayList<>();
+ schemaList.add(new MeasurementSchema(measurement, dataType));
+ tablet = new Tablet(device, schemaList, 300000);
SessionDataSetWrapper dataSet = null;
try {