-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Etcdutl migrate should read WAL from last snapshot #17227
Comments
I would like to work on this issue, @serathius. Can you assign it to me? |
/assign @fykaa |
Overall it's a good idea so that we don't lose any data, which exist in WAL but not in bbolt db. ping @fykaa are you still working on this? |
@fykaa I can take this up if you do not have the bandwidth |
Hi @ArkaSaha30, I've started working on this. Forgot updating in the comments |
Ping @fykaa, do you mind if we reassign the issue so other contributors can help. |
Apologies for the lack of updates on this issue. Over the past couple of months, I’ve had significant changes in my professional journey, including finding a job and transitioning to other focus areas, which made it difficult for me to contribute here. I will unassign myself from this issue to make room for someone else to take it up. I truly appreciate the opportunity and look forward to exploring similar issues when my circumstances align better in the future. |
cc @siyuanfoundation @joshuazh-x I think we need to get this resolved in 3.6. |
It's similar to what the etcdserver bootstrap does. etcd/server/etcdserver/bootstrap.go Lines 391 to 397 in f128d89
@joshuazh-x do you have bandwidth to take care of this ticket? |
I will take over this if nobody work on it this week. |
What would you like to be added?
When reading
etcdutl migrate
code I noticed that I made a mistake (not a serious one :P).In code
etcd/etcdutl/etcdutl/migrate_command.go
Lines 98 to 101 in b3bf59a
I pass
walpb.Snapshot{}
as a reference to snapshot from which to start reading WAL. Empty struct means that fieldsIndex
andTerm
are set to0
, which I think is interpreted as read from beginning.Instead of reading from the beginning we should be reading from the last snapshot, as this is the part of WAL we expect to be read by etcd when started.
The important part is to update the tests to ensure that checking WAL entries work, we need:
Current tests: https://github.com/etcd-io/etcd/blob/b3bf59a3557ce81fb9d4615df667b4cacc6a4f6d/tests/e2e/utl_migrate_test.go
Why is this needed?
Improve correctness of etcdutl migrate command
The text was updated successfully, but these errors were encountered: