You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During raft-engine's recover process, all files before 0000000000000890 in append queue will be skipped.
I am curious if such a situation would occur in normal program operation as when I dive into the purge code:
I think it's caused by file recycling (SinglePipe::recycled_files), some of obsolete log files will be kept around for future writes to reuse. After #310, those files no longer use a different file extension, so you can't distinguish them based on file name alone.
I think it's caused by file recycling (SinglePipe::recycled_files), some of obsolete log files will be kept around for future writes to reuse. After #310, those files no longer use a different file extension, so you can't distinguish them based on file name alone.
Log recycle is not enabled yet, could it be any other reason?
Accidentally I found that raft-engine's data directory contains discontinuous file sequences in append queue:
During raft-engine's recover process, all files before
0000000000000890
in append queue will be skipped.I am curious if such a situation would occur in normal program operation as when I dive into the purge code:
raft-engine/src/file_pipe_log/pipe.rs
Line 426 in e8de5d7
Looks like in
purge_to
method normally all files beforefile_seq
are either all deleted or not.The text was updated successfully, but these errors were encountered: