SteveYurongSu opened a new pull request, #15934: URL: https://github.com/apache/iotdb/pull/15934
This pull request introduces a new validation and repair tool for `TsFileResource` objects in Apache IoTDB, along with corresponding scripts for Windows and Linux environments. The tool checks whether `TsFileResource` objects are marked as "generated by pipe" and repairs them if necessary. Key changes include the implementation of the Java tool, the addition of batch scripts for execution, and improvements to the project's usability and maintainability. ### Tool Implementation: * [`iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/validate/TsFileResourceIsGeneratedByPipeMarkValidationAndRepairTool.java`](diffhunk://#diff-05bb3a58b8acb7c822415eb5a0de54fac849906e5b22c8af37f7d21e4914361fR1-R275): Added a Java tool that validates and repairs `TsFileResource` objects based on whether they are marked as "generated by pipe." It supports command-line arguments for specifying expected marks and directories to validate. ### Windows Script: * [`iotdb-core/datanode/src/assembly/resources/tools/tsfile/mark-is-generated-by-pipe.bat`](diffhunk://#diff-fab6041d2af7b32ef45087b9b6b3f38bd8cd568f3651d53d56d7b788b30ad03aR1-R59): Added a batch script for Windows to execute the validation and repair tool, including environment setup and error handling for missing `JAVA_HOME`. ### Linux Script: * [`iotdb-core/datanode/src/assembly/resources/tools/tsfile/mark-is-generated-by-pipe.sh`](diffhunk://#diff-05c7595b082852b41beda4d3e2bca5d88a04d806e2f4673ada75cdff89fee173R1-R51): Added a shell script for Linux to execute the validation and repair tool, leveraging common IoTDB environment setup functions. -- 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]
