导航更新导致死锁问题 返回

SqlSugar 沟通中
2 440
System.InvalidOperationException: The exception handler configured on ExceptionHandlerOptions produced a 404 status response. This InvalidOperationException containing the original exception was thrown since this is often due to a misconfigured ExceptionHandlingPath. If the exception handler is expected to return 404 status responses then set AllowStatusCode404Response to true. ---> MySqlConnector.MySqlException (0x80004005): Lock wait timeout exceeded; try restarting transaction   at SqlSugar.UpdateNavTask`2.<>c.<ExecuteCommand>b__20_1(Exception ex)   at SqlSugar.AdoProvider.UseTran(Action action, Action`1 errorCallBack)   at SqlSugar.UpdateNavTask`2.ExecuteCommand()   at SqlSugar.UpdateNavTask`2.<ExecuteCommandAsync>b__21_0()   at SqlSugar.UpdateNavTask`2.ExecuteCommandAsync()


热忱回答2

  • 小杰 小杰 VIP0
    2026/2/10

    看不出问题,是否并发过高。有疑问可以提供demo

    0 回复
  • @小杰:解决了。主表被锁死了的问题

    0 回复