偶发异常Could not retrieve transaction read-only status from server,

记耗时较长事务引起异常"Could not retrieve transaction read-only status from server"

记耗时较长事务引起异常"Could not retrieve transaction read-only status from server"记耗时较长事务引起异常"Could not retrieve transaction read-only status from server"

数据库mysql 5.6 drruid 1.10 mysql-connector-5.1.4

网上查找的原因:jar不兼容,事务级别等皆不符合

最终原因是:数据库INTERACTIVE_TIMEOUT时间为5分钟,事务开启,从数据库获取到连接,8分钟之后处理完成,此时数据库已经主动断开事务保持的连接,事务再次操作数据库抛出异常

相关文章:

  • 2022-01-01
  • 2021-09-15
  • 2022-01-20
  • 2021-12-27
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-22
  • 2021-07-09
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
相关资源
相似解决方案