-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
When I am testing ghost on a slave located at localhost I get the error that replication is broken because
Slave_IO_Running returned "Connecting" instead of "Yes".
However, for some reason whenever I run SHOW SLAVE STATUS it returns for both Slave_IO_Running: yes and Slave_SQL_running: yes. My slave is running fine and syncing with the master...
Only when Ghost checks the Slave_IO_Running it seems to return connecting. Does this have to do with any work Ghost does in preparation and doesn't wait for my slave re-connecting to the master?
Here is the log.
./gh-ost --max-load=Threads_running=25 --critical-load=Threads_running=1000 --chunk-size=1000 --max-lag-millis=1500 --user="root" --password="root" --host=localhost --database="test_database" --table="test_table" --verbose --alter="engine=innodb" --cut-over=default --exact-rowcount --concurrent-rowcount --default-retries=120 --panic-flag-file=/tmp/ghost.panic.flag --postpone-cut-over-flag-file=/tmp/ghost.postpone.flag [--execute]
> 2016-12-12 06:44:06 INFO starting gh-ost 1.0.30
> 2016-12-12 06:44:06 INFO Migrating `test_database`.`test_table`
> 2016-12-12 06:44:06 INFO connection validated on localhost:3306
> 2016-12-12 06:44:06 INFO User has ALL privileges
> 2016-12-12 06:44:06 INFO binary logs validated on localhost:3306
> 2016-12-12 06:44:06 INFO Restarting replication on localhost:3306 to make sure binlog settings apply to replication thread
> 2016-12-12 06:44:06 INFO Table found. Engine=InnoDB
> 2016-12-12 06:44:06 INFO Estimated number of rows via EXPLAIN: 2
> 2016-12-12 06:44:06 INFO Recursively searching for replication master
> 2016-12-12 06:44:06 INFO FATAL Replication on localhost:3306 is broken: Slave_IO_Running: Connecting, Slave_SQL_Running: Yes. Please make sure replication runs before using gh-ost.
Reactions are currently unavailable