title: AWS Aurora Serverless MySQL hanging periocically for no apparent reason
body: <p>I am getting a lot of times where my Aurora Serverless MySQL database will just suddenly lockup with a lot of waiting for &quot;table metadata lock&quot; and waiting for &quot;table level lock&quot;,</p>
  <p>When that happens, the entire application is not able to access the locked tables, and no matter how long I wait, those locks does not get freed up. I need to sign into the database from the rds query editor and manually kill the threads.</p>
  <p>This has not happened when I was running my own MySQL server installation, only on Aurora Serverless.</p>
  <p>There are no database transactions used in the system, and the database is set to auto commit after every queries.</p>
  <p>Is there something I can do about this to stop this from happening?</p>
  <p><a href="https://i.stack.imgur.com/GdMbV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GdMbV.png" alt="enter image description here" /></a></p>