Ensure that only one node performs site replication healing (#15584)

When a node finds a change in the other replication cluster and applies
to itself will already notify other peers. No need for all nodes in a
given cluster to do site replication healing, only one node is
sufficient.
This commit is contained in:
Anis Elleuch
2022-08-24 21:46:09 +01:00
committed by GitHub
parent 97a6322de1
commit b737c83a66
2 changed files with 32 additions and 1 deletions

View File

@@ -335,7 +335,7 @@ kill -9 ${site1_pid}
./mc rb minio2/bucket2
# Restart minio1 instance
minio server --config-dir /tmp/minio-internal --address ":9001" /tmp/minio-internal-idp1/{1...4} >/tmp/minio1_1.log 2>&1 &
sleep 30
sleep 40
# Test whether most recent tag update on minio2 is replicated to minio1
val=$(./mc tag list minio1/newbucket --json | jq -r .tagset | jq -r .key )