<div dir="ltr">On Thu, Sep 4, 2014 at 1:05 AM, Magnus Manske <span dir="ltr"><<a href="mailto:magnusmanske@googlemail.com" target="_blank">magnusmanske@googlemail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I keep getting timeout errors on MySQL:<br><br>[Lock wait timeout exceeded; try restarting transaction]<br></div></div></div></blockquote><div><br></div><div>Is there any pattern? Time of day, specific query (I know you're chasing this), certain wikis or tables?<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div>I'm trying to find the exact query; in the meantime, how can I avoid this? As in, tell MySQL not to time out.<span class="HOEnZb"><font color="#888888"><br></font></span></div></div></blockquote><div><br></div><div>Lock timeout is storage engine dependent, hence asking about the affected tables.<br><br>The default lock timeout for InnoDB and TokuDB tables on labsdb is 50 seconds. A client may set either innodb_lock_wait_timeout (seconds) or tokudb_lock_timeout (milliseconds) to a custom value for the session.<br></div></div></div></div>