Pengzna opened a new pull request, #16171: URL: https://github.com/apache/iotdb/pull/16171
The problem can be abstracted as: 1. Write file A with RandomFileWriterA, write 0~x bytes. 2. Re-new RandomFileWriterB on file 3. Use RandomFileWriterB to write file A and write x~end bytes 4. It is expected to directly override file A into x~end bytes So every time we new RandomAccessFile, we should point its pointer to the end of the file, keeping the append semantics. In addition, when the follower fails the precheck due to read-only or other reasons, the corresponding RandomAccessFile needs to be recycled. -- 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]
