This is an automated email from the ASF dual-hosted git repository.
tanxinyu 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 0b28f31379d fix dataMigrationExample error (#10886)
0b28f31379d is described below
commit 0b28f31379d53e94d2862c31258f725da5011345
Author: YuFengLiu <[email protected]>
AuthorDate: Thu Aug 17 16:47:39 2023 +0800
fix dataMigrationExample error (#10886)
---
.../session/src/main/java/org/apache/iotdb/DataMigrationExample.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 08d8e9673c3..b7757bc6da0 100644
--- a/example/session/src/main/java/org/apache/iotdb/DataMigrationExample.java
+++ b/example/session/src/main/java/org/apache/iotdb/DataMigrationExample.java
@@ -62,7 +62,8 @@ public class DataMigrationExample {
throws IoTDBConnectionException, StatementExecutionException,
ExecutionException,
InterruptedException {
- ExecutorService executorService = Executors.newFixedThreadPool(CONCURRENCY
+ 1);
+ // the thread used for dataMigration must be smaller than session pool size
+ ExecutorService executorService =
Executors.newFixedThreadPool(CONCURRENCY);
String path = "root.**";