etcd
etcd copied to clipboard
Bootstrap etcdserver from v3store (consistent_index)
What would you like to be added?
We have already deprecated v2store, and v3store is the solely source of truth for all data, including membership data in 3.6.0. But etcdserver still bootstrap from v2store, the latest v2 snapshot file. It will replay all WAL records starting from the latest snapshot index.
It doesn't make sense. We should bootstrap etcdserver from v3store, and replay WAL records start from the consistent_index.
It's the last blocker to completely get rid of the v2store.
Previous draft https://github.com/etcd-io/etcd/pull/17022
Why is this needed?
to completely get rid of v2store
Regarding the test, I think we can add a verification (see an example https://github.com/etcd-io/etcd/pull/19730) to ensure that etcdserver never applies entries <= consistent_index.
/cc
/assign @fuweid
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.
@fuweid are you still working on this task?
@ahrtr I don’t have the bandwidth to handle this until mid-October. If it’s urgent, I can un-assign. Sorry about that.
@ahrtr I don’t have the bandwidth to handle this until mid-October. If it’s urgent, I can un-assign. Sorry about that.
No problem, let me see if I can spend more time on this later.
I will try to spend more time on this, assign this ticket to me? @fuweid