etcd icon indicating copy to clipboard operation
etcd copied to clipboard

Bootstrap etcdserver from v3store (consistent_index)

Open ahrtr opened this issue 5 months ago • 2 comments

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

ahrtr avatar Jun 18 '25 09:06 ahrtr

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.

ahrtr avatar Jun 18 '25 10:06 ahrtr

/cc

hwdef avatar Jun 18 '25 13:06 hwdef

/assign @fuweid

ahrtr avatar Jun 18 '25 17:06 ahrtr

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.

github-actions[bot] avatar Aug 18 '25 00:08 github-actions[bot]

@fuweid are you still working on this task?

ahrtr avatar Sep 08 '25 08:09 ahrtr

@ahrtr I don’t have the bandwidth to handle this until mid-October. If it’s urgent, I can un-assign. Sorry about that.

fuweid avatar Sep 09 '25 02:09 fuweid

@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.

ahrtr avatar Sep 09 '25 08:09 ahrtr

I will try to spend more time on this, assign this ticket to me? @fuweid

ahrtr avatar Oct 03 '25 19:10 ahrtr