Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent does not close raft log #5

Open
varunbpatil opened this issue Dec 24, 2021 · 2 comments
Open

Agent does not close raft log #5

varunbpatil opened this issue Dec 24, 2021 · 2 comments

Comments

@varunbpatil
Copy link

In *DistributedLog.Close(), the raft logStore is not closed. As a result, the index file corresponding to the raft log is not truncated to its actual size. As a result, the index file is corrupt and cannot be read after restart.

@xzbdmw
Copy link

xzbdmw commented Apr 26, 2023

In *DistributedLog.Close(), the raft logStore is not closed. As a result, the index file corresponding to the raft log is not truncated to its actual size. As a result, the index file is corrupt and cannot be read after restart.

find the same problem,but how to fix this?

@xzbdmw
Copy link

xzbdmw commented Apr 26, 2023

In *DistributedLog.Close(), the raft logStore is not closed. As a result, the index file corresponding to the raft log is not truncated to its actual size. As a result, the index file is corrupt and cannot be read after restart.

the original code can't restore logs correctly, but when I fix this truncate bug it also can't work, the info says "Failed to append to logs:EOF"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants