From 471dd24105f8c78bb5ff4446641a9b1dc40d4d9e Mon Sep 17 00:00:00 2001 From: Mehedi Hasan Date: Tue, 31 Oct 2023 12:49:03 +0600 Subject: [PATCH] add ready signal for coordinator Signed-off-by: Mehedi Hasan --- scripts/run.sh | 1 + scripts/run_innodb.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/run.sh b/scripts/run.sh index 53db7d9..3a5411f 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -205,6 +205,7 @@ function create_replication_user() { else log "INFO" "Replication user exists. Skipping creating new one......." fi + touch /scripts/ready.txt } function install_group_replication_plugin() { diff --git a/scripts/run_innodb.sh b/scripts/run_innodb.sh index f21b85a..b986f05 100755 --- a/scripts/run_innodb.sh +++ b/scripts/run_innodb.sh @@ -107,6 +107,7 @@ function create_replication_user() { retry 120 ${mysql} -N -e "SET SQL_LOG_BIN=1;" fi # retry 120 ${mysql} -N -e "CHANGE MASTER TO MASTER_USER='repl', MASTER_PASSWORD='$MYSQL_ROOT_PASSWORD' FOR CHANNEL 'group_replication_recovery';" + touch /scripts/ready.txt } restart_required=0