发现程序中有个批量update语句需要update 16000多条数据导致超时
2019-11-06 10:35:28.312 pool-9-thread-24 ERROR com.hp.nova.common.tasksync.tcscheduler.TcFileProcessScheduleJob.fileProcessCronJob(TcFileProcessScheduleJob.java:354) - org.springframework.jdbc.UncategorizedSQLException: ### Error updating database. Cause: java.sql.SQLException: sql timeout ### The error may involve com.hp.nova.dao.instancestruct.EInstanceStructDao.updateEinstanceStepStatusBatch-Inline ### The error occurred while setting parameters
需要设置一下mycat的超时时间
mycat/conf/server.xml
<system> <property name="sqlExecuteTimeout">3000</property>
把sqlExecuteTimeout改为3000秒,默认不设置为300秒 |