Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

When interrupting a query on a Master, does it replicate to the Slave?

$
0
0

In MySQL, when does the master send a query to the slaves?

Here's a specific scenario that I'm trying to understand.

  • Admin entered an update on master that took a long time to execute.
  • Admin hits Ctrl-C to stop the query.

I see four scenarios that may have happened:

  1. Nothing happened on the slave, because master waits until the query is finished executing before it sends the query to the slave.
  2. A huge update happened on the slave, because the master passed the query along immediately, and didn't pass the ^C along to the slave.
  3. The same update happened on the slave as the master, because the master passed the query along immediately, and also passed the ^C along to the slave.
  4. The same updates happened on the slave as the master, because the master passed each individual update along to the slave.

Which one of these actually happened?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>