Commit 9831378b by huangfusuper

增加字段所日志

parent 4492cf56
...@@ -131,6 +131,7 @@ public class ScriptExecutorJobTask implements TimerTask { ...@@ -131,6 +131,7 @@ public class ScriptExecutorJobTask implements TimerTask {
* @throws InterruptedException * @throws InterruptedException
*/ */
private JobTaskRunLogWithBLOBs spinLock (JobTaskRunLogWithBLOBs jobTaskRunLogById) throws InterruptedException { private JobTaskRunLogWithBLOBs spinLock (JobTaskRunLogWithBLOBs jobTaskRunLogById) throws InterruptedException {
log.debug("---------------进入自旋锁状态spinLock---------");
JobTaskRunLogServiceImpl jobTaskRunLogService = SpringUtil.getBean(JobTaskRunLogServiceImpl.class); JobTaskRunLogServiceImpl jobTaskRunLogService = SpringUtil.getBean(JobTaskRunLogServiceImpl.class);
int i = 1; int i = 1;
while (jobTaskRunLogById ==null) { while (jobTaskRunLogById ==null) {
...@@ -143,8 +144,10 @@ public class ScriptExecutorJobTask implements TimerTask { ...@@ -143,8 +144,10 @@ public class ScriptExecutorJobTask implements TimerTask {
} }
if(jobTaskRunLogById != null){ if(jobTaskRunLogById != null){
log.debug("---------------自旋获取锁成功---------");
return jobTaskRunLogById; return jobTaskRunLogById;
} }
log.debug("---------------自旋获取锁失败---------");
throw new RuntimeException("服务器分配资源失败"); throw new RuntimeException("服务器分配资源失败");
} }
......
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 to comment