Commit ebc5618e by xuxueli

调度线程优化,避免异常无法commit导致锁表;

parent 04e16245
......@@ -160,7 +160,9 @@ public class JobScheduleHelper {
try {
conn.commit();
} catch (SQLException e) {
e.printStackTrace();
if (!scheduleThreadToStop) {
logger.error(e.getMessage(), e);
}
}
// close PreparedStatement
......@@ -168,6 +170,9 @@ public class JobScheduleHelper {
try {
preparedStatement.close();
} catch (SQLException ignore) {
if (!scheduleThreadToStop) {
logger.error(ignore.getMessage(), ignore);
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment