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 2026/02/06 04:06:44 UTC
(iotdb) branch dev/1.3 updated: Ignore non-tsfile when importing tsfile (#17173)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/dev/1.3 by this push:
new 29e3c0af3a4 Ignore non-tsfile when importing tsfile (#17173)
29e3c0af3a4 is described below
commit 29e3c0af3a4c459b4ad346189eff9d035b360ac0
Author: Jiang Tian <jt...@163.com>
AuthorDate: Fri Feb 6 12:06:38 2026 +0800
Ignore non-tsfile when importing tsfile (#17173)
---
.../main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java
index 4891f425486..fe520502ec3 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileScanTool.java
@@ -28,6 +28,7 @@ public class ImportTsFileScanTool {
private static final String RESOURCE = ".resource";
private static final String MODS = ".mods";
+ private static final String TSFILE = ".tsfile";
private static final LinkedBlockingQueue<String> tsfileQueue = new LinkedBlockingQueue<>();
private static final Set<String> tsfileSet = new HashSet<>();
@@ -43,7 +44,7 @@ public class ImportTsFileScanTool {
if (file.isFile()) {
if (file.getName().endsWith(RESOURCE) || file.getName().endsWith(MODS)) {
resourceOrModsSet.add(file.getAbsolutePath());
- } else {
+ } else if (file.getName().endsWith(TSFILE)) {
tsfileSet.add(file.getAbsolutePath());
tsfileQueue.put(file.getAbsolutePath());
}