Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

fixing concurrency execution of ReplicationLagQuery#219

Merged
shlomi-noach merged 1 commit into
masterfrom
replication-lag-seconds-concurrency
Jun 28, 2017
Merged

fixing concurrency execution of ReplicationLagQuery#219
shlomi-noach merged 1 commit into
masterfrom
replication-lag-seconds-concurrency

Conversation

@shlomi-noach
Copy link
Copy Markdown
Collaborator

#182 split instance detection and probing queries to run concurrently. The ReplicationLagQuery was one of the queries to run concurrently and to be executed straight away.

However that was a mistake, since ReplicationLagQuery competes with another query, SHOW SLAVE STATUS for the replication lag.

SHOW SLAVE STATUS must run first, and ReplicationLagQuery must run later, so that it can override, if needed, the ReplicationLagSeconds value.

There is no problem for ReplicationLagQuery to run concurrently, as long as it gets executed after SHOW SLAVE STATUS.

cc @jonahberquist

@shlomi-noach shlomi-noach deployed to production/github-mysqlutil June 28, 2017 04:29 Active
@shlomi-noach shlomi-noach merged commit 5fdb8b5 into master Jun 28, 2017
@shlomi-noach shlomi-noach deleted the replication-lag-seconds-concurrency branch June 28, 2017 05:41
@jonahberquist
Copy link
Copy Markdown
Collaborator

Nice 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants