I assume we use 'row-based replication'
https://dev.mysql.com/doc/refman/5.7/en/replication-features-triggers.html
Jeff_Green::: eileen: something occured to me over the weekend: triggers exist only on the master right?
eileen:: Jeff_Green: hmm - maybe they get replicated. That would be bad
Jeff_Green
10:30 eileen: i was thinking about what happens if the master explodes
awight
10:30 Jeff_Green: wrt triggers, yeah I think that's the interaction that causes all of our SUPER problems, cos triggers and functions on the replica would not be deterministic
Jeff_Green
10:30 we need to be sure we have a cutover protocol that allows us to promote a slave without losing triggers
awight
10:31 ooh good catch
eileen
10:31 hmm - as long as the triggers don't fire during replication
Jeff_Green
10:31 it woke me up actually
awight
10:31 ha, a demonic vision
Jeff_Green
10:31 just about to fall asleep panic on Saturday night
eileen
10:31 :-)
10:32 yeah we can't really test that on staging!
Jeff_Green
10:32 i might be able to figure out a way to test it
eileen
10:32 am just reading this https://dev.mysql.com/doc/refman/5.7/en/replication-features-triggers.html