On Fri, Jun 14, 2013 at 1:46 AM, Tim Landscheidt <span dir="ltr"><<a href="mailto:tim@tim-landscheidt.de" target="_blank">tim@tim-landscheidt.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Asher Feldman <<a href="mailto:afeldman@wikimedia.org">afeldman@wikimedia.org</a>> wrote:<br>
<br>
> Replication was halted on a lock timeout, likely caused by a query writing<br>
> to a userdb while reading from a dewiki table. I had intended to set<br>
> innodb_locks_unsafe_for_binlog on all labsdb servers, which disables gap<br>
> and next key locking, while also only guaranteeing read_committed<br>
> isolation. This is completely safe in labs since nothing but the slave sql<br>
> thread writes to the replicated tables, and it should prevent this issue.<br>
> I ended up setting it for everything except s4 and s5; probably related to<br>
> the mad scrambling for the Amsterdam hackathon :) S4 and s5 now need a<br>
> mariadb restart for the setting to go live, which I'll work with Marc to<br>
> schedule.<br>
<br>
> I've also set slave_transaction_retries to a very large value on all of the<br>
> labsdb's, a change which does not require a restart. That should also<br>
> prevent a recurrence in the interim before the the server restarts occur.<br>
> And at least the s5 replica caught up very quickly.<br>
<br>
</div>> [...]<br>
<br>
Is this limited to the replicated tables or does it affect<br>
the user tables as well? Does this mean REPEATABLE READ is<br>
not available at all on the labsdb servers?<br></blockquote><div><br>Essentially. While tx_isolation is set to REPEATABLE READ, only READ COMMITTED is actually guaranteed. This applies to all labsdb systems.<br><br></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Tim<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</div></div></blockquote></div><br>