Interrupted write causes corruption #243
Labels
bug
Something isn't working
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
At this line, we use
write_all
to append some bytes:raft-engine/src/file_pipe_log/log_file.rs
Line 107 in ee0f6cf
If this write is interrupted, we directly bubble its error. But some portion of the data might already be written. In this case, the
self.written
is inconsistent with underlying writer's internal offset. A fractured write will remain as a phantom record.The text was updated successfully, but these errors were encountered: