MySQL InnoDB hangs on waiting for table-level locks

前端 未结 6 2032
抹茶落季
抹茶落季 2021-02-04 14:04

I have a big production web-application (Glassfish 3.1 + MySQL 5.5). All tables are InnoDB. Once per several days application totally hangs. SHOW FULL PROCESSLIST

6条回答
  •  迷失自我
    2021-02-04 14:13

    I see you havily use NAME_CONST in your code. Just try not to use it. You know, mysql can be sometimes buggy (I also found several bugs), so I recommend don't rely on features which are not so common / well tested. It is related to column names, so maybe it locks something? Well it should't if it affects only the result, but who knows? This is suspicious. Moreover, this is marked as a function for internal use only.

提交回复
热议问题