YC27 commented on code in PR #13352:
URL: https://github.com/apache/iotdb/pull/13352#discussion_r1744755200
##########
iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFile.java:
##########
@@ -324,9 +292,13 @@ public static int importFromTargetPath() {
.build();
sessionPool.setEnableQueryRedirection(false);
- traverseAndCollectFiles(file);
- addNoResourceOrModsToQueue();
- ioTPrinter.println("Load file total number : " + tsfileQueue.size());
+ // set params
+ processSetParams();
+
+ ImportTsFileScanTool.traverseAndCollectFiles();
+ ImportTsFileScanTool.addNoResourceOrModsToQueue();
+
+ ioTPrinter.println("Load file total number : " +
ImportTsFileScanTool.getTsFileQueueSize());
Review Comment:
catch (Exception e) {
ioTPrinter.println(String.format("Import tsfile fail: %s",
e.getMessage()));
return CODE_ERROR;
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]