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

raftexample deletes nodes and adds old nodes abnormally #18777

Closed
4 tasks done
ws-weisb opened this issue Oct 24, 2024 · 2 comments
Closed
4 tasks done

raftexample deletes nodes and adds old nodes abnormally #18777

ws-weisb opened this issue Oct 24, 2024 · 2 comments
Labels

Comments

@ws-weisb
Copy link

Bug report criteria

What happened?

raftexample

Q1: Deleting the data on the deleted machine is useless, will replay synced data after restart. All machine configurations need to be removed. Is this expected?

image

relation issue #15380 (comment)_

steps:

  1. run cluster by Procfile
  2. curl DELETE /3 on ID 1
  3. curl POST /3 on ID 1
  4. rm -fr raftexample-3*
  5. restart ID 3 by same command

Q2: Why #13645 is not included in v3.5.16
tag v3.5.16
image

What did you expect to happen?

Q1: only delete the data of the previously removed nodes instead of all nodes
Q2: don't panic when remove unknown id, the previous commit should be in v3.5.16

How can we reproduce it (as minimally and precisely as possible)?

Q1:
run raftexample on v3.5.16

  1. run cluster by Procfile
  2. curl DELETE /3 on ID 1
  3. curl POST /3 on ID 1
  4. rm -fr raftexample-3*
  5. restart ID 3 by same command

Q2:
run raftexample on v3.5.16
curl DELETE /4 on any node

Anything else we need to know?

No response

Etcd version (please run commands below)

git tag v3.5.16

$ etcd --version
no

$ etcdctl version
no

Etcd configuration (command line flags or environment variables)

paste your configuration here

Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)

$ etcdctl member list -w table
# paste output here

$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here

Relevant log output

No response

@ahrtr
Copy link
Member

ahrtr commented Oct 25, 2024

Q1: Deleting the data on the deleted machine is useless, will replay synced data after restart. All machine configurations need to be removed. Is this expected?

It should be expected. A new member will sync data from other members automatically on startup. Note that we are not actively maintaining raftexample. Once etcd-io/raft#2 is resolved, then we will remove it from etcd repo.

Q2: Why #13645 is not included in v3.5.16

Note that issue #13466 could only be reproduced in 3.5.0. So no need to backport the fix to release-3.5. Read https://github.com/ahrtr/etcd-issues/tree/master/issues/13466

But It seems that you are still talking about raftexample.

@ahrtr ahrtr closed this as completed Oct 25, 2024
@maxiloEmmmm
Copy link

@ahrtr That’s right. Q2 still refers to raftexample. Is this error still possible in 3.5.16 because raftexample is not maintained?

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

No branches or pull requests

3 participants