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

make-mirror process exists but it does not work after a network failure for a period of time #9569

Open
HADINIIT opened this issue Apr 13, 2018 · 0 comments

Comments

@HADINIIT
Copy link

HADINIIT commented Apr 13, 2018

Setup

  • etcd Version: 3.2.7
  • OS/Arch : Linux/amd64

Reproduction step

  1. start two etcd clusters like the following command

cluster1(3 members in one machine):

etcd --name M1 --data-dir /opt/etcd_1/data --initial-advertise-peer-urls http://10.37.64.52:2380 --listen-peer-urls http://10.37.64.52:2380 --advertise-client-urls http://0.0.0.0:2379 --listen-client-urls http://0.0.0.0:2379 --initial-cluster M1=http://10.37.64.52:2380,M2=http://10.37.64.52:3380,M3=http://10.37.64.52:4380 --initial-cluster-state new --initial-cluster-token etcd-cluster1 --auto-compaction-retention 2

......

cluster2(3 members in one machine):

etcd --name M1 --data-dir /opt/etcd_1/data --initial-advertise-peer-urls http://10.37.64.53:2380 --listen-peer-urls http://10.37.64.53:2380 --advertise-client-urls http://0.0.0.0:2379 --listen-client-urls http://0.0.0.0:2379 --initial-cluster M1=http://10.37.64.53:2380,M2=http://10.37.64.53:3380,M3=http://10.37.64.53:4380 --initial-cluster-state new --initial-cluster-token etcd-cluster2 --auto-compaction-retention 2

......
  1. start the make-mirror process

execute the following command in cluster2

nohup etcdctl --endpoints=[10.37.64.52:2379,10.37.64.52:3379,10.37.64.52:4379] make-mirror --prefix=/cluster1 http://10.37.64.53:4379 >/dev/null 2>&1 &
  1. Analog network fault

execute the following command in cluster2

iptables -A INPUT -j REJECT -s 10.37.64.52
iptables -A OUTPUT -j REJECT -d 10.37.64.52

atfer a period of time(sometimes about 2 minutes ,sometimes more),recovery the network

iptables -D INPUT -j REJECT -s 10.37.64.52
iptables -D OUTPUT -j REJECT -d 10.37.64.52
  1. make-mirror process exists,but it does not work

put key in cluster1

etcdctl --endpoints=[10.37.64.52:2379,10.37.64.52:3379,10.37.64.52:4379] put /cluster1/test_key test

make-mirror process exists, but the key does not exists in cluster2

@HADINIIT HADINIIT changed the title make-mirror process exits but it does not work after a network failure for a period of time make-mirror process exists but it does not work after a network failure for a period of time Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants