SteveYurongSu commented on code in PR #13400:
URL: https://github.com/apache/iotdb/pull/13400#discussion_r1749988576


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/splitter/TsFileSplitter.java:
##########
@@ -389,8 +389,20 @@ private boolean checkMagic(TsFileSequenceReader reader) 
throws IOException {
     }
 
     byte versionNumber = reader.readVersionNumber();
-    if (versionNumber != TSFileConfig.VERSION_NUMBER) {
-      logger.error("the file's Version Number is incorrect, file path: {}", 
reader.getFileName());
+    if (versionNumber < TSFileConfig.VERSION_NUMBER) {
+      if (versionNumber < TSFileConfig.VERSION_NUMBER - 1) {
+        logger.error("the file's Version Number is too old, file path: {}", 
reader.getFileName());
+        return false;
+      } else {
+        logger.warn(

Review Comment:
   Need to test loading v3 files into v4 IoTDB with type dismatch conditions.



-- 
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]

Reply via email to