Skip to content

sleeping 500ms after 'START SLAVE' - #337

Merged
shlomi-noach merged 2 commits into
masterfrom
start-slave-wait
Dec 15, 2016
Merged

shlomi-noach merged 2 commits into
masterfrom
start-slave-wait

Conversation

@shlomi-noach

@shlomi-noach shlomi-noach commented Dec 13, 2016 •

Copy link
Copy Markdown
Contributor

Storyline: #335

Immediately following START SLAVE command, gh-ost sleeps for 500ms to allow the replica the time to connect to its master.
Otherwise, if SHOW SLAVE STATUS is immediately executed after START SLAVE, the Slave_IO_thread can still be in Connecting state, which is interpreted as "oh replication isn't running".

  • contributed code is using same conventions as original code
  • code is formatted via gofmt (please avoid goimports)
  • code is built via ./build.sh
  • code is tested via ./test.sh

@shlomi-noach
shlomi-noach deployed to production/ghost-mysql001 December 14, 2016 09:33 Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant