deason 2 vuotta sitten
vanhempi
commit
4301d18c2f

+ 2 - 2
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/impl/ExamRecordDataServiceImpl.java

@@ -137,10 +137,10 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
                 } catch (Exception e) {
                 } catch (Exception e) {
                     if (e instanceof SequenceLockException) {
                     if (e instanceof SequenceLockException) {
                         // 若锁问题,下次会继续执行
                         // 若锁问题,下次会继续执行
-                        log.warn("当前抓拍照比对任务获取锁失败!examRecordDataId:{}, redisKey:{}", examRecordData.getId(), lockKey);
+                        log.warn("当前人脸比对获取锁失败!examRecordDataId:{}, redisKey:{}", examRecordData.getId(), lockKey);
                     } else {
                     } else {
                         // 若异常,下次会继续执行(需要排查原因)
                         // 若异常,下次会继续执行(需要排查原因)
-                        log.error("当前抓拍照比对任务处理失败!examRecordDataId:{}, error:{}", examRecordData.getId(), e.getMessage(), e);
+                        log.error("当前人脸比对处理失败!examRecordDataId:{}, error:{}", examRecordData.getId(), e.getMessage());
                     }
                     }
 
 
                     throw new StatusException(Constants.CAPTURE_PROCESSING_STATUS_CODE, "抓拍照片比对尚未处理完!");
                     throw new StatusException(Constants.CAPTURE_PROCESSING_STATUS_CODE, "抓拍照片比对尚未处理完!");

+ 3 - 3
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/job/AfterHandInExamJobHandler.java

@@ -41,7 +41,7 @@ public class AfterHandInExamJobHandler {
 
 
             batchNo++;
             batchNo++;
             sumTodoSize += todoList.size();
             sumTodoSize += todoList.size();
-            log.warn("TODO_LIST_2 shardTotal:{}, shardIndex:{}, sumTodoSize:{}, curTodoSize:{}, batchNo:{}, startId:{}",
+            log.warn("STEP_2 shardTotal:{}, shardIndex:{}, sumTodoSize:{}, curTodoSize:{}, batchNo:{}, startId:{}",
                     shardTotal, shardIndex, sumTodoSize, todoList.size(), batchNo, startId);
                     shardTotal, shardIndex, sumTodoSize, todoList.size(), batchNo, startId);
 
 
             if (CollectionUtils.isEmpty(todoList)) {
             if (CollectionUtils.isEmpty(todoList)) {
@@ -64,10 +64,10 @@ public class AfterHandInExamJobHandler {
                         throw e;
                         throw e;
                     } else if (e instanceof SequenceLockException) {
                     } else if (e instanceof SequenceLockException) {
                         // 若锁问题,下次会继续执行
                         // 若锁问题,下次会继续执行
-                        log.warn("当前考试记录数据获取锁失败!examRecordDataId:{}, redisKey:{}", data.getId(), lockKey);
+                        log.warn("当前任务获取锁失败!examRecordDataId:{}, redisKey:{}", data.getId(), lockKey);
                     } else {
                     } else {
                         // 若异常,下次会继续执行(需要排查原因)
                         // 若异常,下次会继续执行(需要排查原因)
-                        log.error("当前考试记录数据处理失败!examRecordDataId:{}, error:{}", data.getId(), e.getMessage(), e);
+                        log.error("当前任务处理失败!examRecordDataId:{}, error:{}", data.getId(), e.getMessage());
                     }
                     }
                 } finally {
                 } finally {
                     SequenceLockHelper.releaseLockSimple(lockKey);
                     SequenceLockHelper.releaseLockSimple(lockKey);

+ 3 - 3
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/job/BeforeHandInExamJobHandler.java

@@ -58,7 +58,7 @@ public class BeforeHandInExamJobHandler {
 
 
             batchNo++;
             batchNo++;
             sumTodoSize += todoList.size();
             sumTodoSize += todoList.size();
-            log.warn("TODO_LIST_1 shardTotal:{}, shardIndex:{}, sumTodoSize:{}, curTodoSize:{}, batchNo:{}, startId:{}",
+            log.warn("STEP_1 shardTotal:{}, shardIndex:{}, sumTodoSize:{}, curTodoSize:{}, batchNo:{}, startId:{}",
                     shardTotal, shardIndex, sumTodoSize, todoList.size(), batchNo, startId);
                     shardTotal, shardIndex, sumTodoSize, todoList.size(), batchNo, startId);
 
 
             if (CollectionUtils.isEmpty(todoList)) {
             if (CollectionUtils.isEmpty(todoList)) {
@@ -79,10 +79,10 @@ public class BeforeHandInExamJobHandler {
                         throw e;
                         throw e;
                     } else if (e instanceof SequenceLockException) {
                     } else if (e instanceof SequenceLockException) {
                         // 若锁问题,下次会继续执行
                         // 若锁问题,下次会继续执行
-                        log.warn("当前考试记录数据获取锁失败!examRecordDataId:{}, redisKey:{}", data.getId(), lockKey);
+                        log.warn("当前任务获取锁失败!examRecordDataId:{}, redisKey:{}", data.getId(), lockKey);
                     } else {
                     } else {
                         // 若异常,下次会继续执行(需要排查原因)
                         // 若异常,下次会继续执行(需要排查原因)
-                        log.error("当前考试记录数据处理失败!examRecordDataId:{}, error:{}", data.getId(), e.getMessage(), e);
+                        log.error("当前任务处理失败!examRecordDataId:{}, error:{}", data.getId(), e.getMessage());
                     }
                     }
                 } finally {
                 } finally {
                     SequenceLockHelper.releaseLockSimple(lockKey);
                     SequenceLockHelper.releaseLockSimple(lockKey);

+ 3 - 3
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/job/FaceVerifyJobHandler.java

@@ -46,14 +46,14 @@ public class FaceVerifyJobHandler {
             } catch (Exception e) {
             } catch (Exception e) {
                 if (e instanceof InterruptedException) {
                 if (e instanceof InterruptedException) {
                     // 若线程终止,则抛出交由任务调度中心处理
                     // 若线程终止,则抛出交由任务调度中心处理
-                    log.warn("当前抓拍照比对任务线程被终止!examRecordDataId:{}, error:{}", examRecordDataId, e.getMessage());
+                    log.warn("当前人脸比对任务线程被终止!examRecordDataId:{}, error:{}", examRecordDataId, e.getMessage());
                     throw e;
                     throw e;
                 } else if (e instanceof SequenceLockException) {
                 } else if (e instanceof SequenceLockException) {
                     // 若锁问题,下次会继续执行
                     // 若锁问题,下次会继续执行
-                    log.warn("当前抓拍照比对任务获取锁失败!examRecordDataId:{}, redisKey:{}", examRecordDataId, lockKey);
+                    log.warn("当前人脸比对任务获取锁失败!examRecordDataId:{}, redisKey:{}", examRecordDataId, lockKey);
                 } else {
                 } else {
                     // 若异常,下次会继续执行(需要排查原因)
                     // 若异常,下次会继续执行(需要排查原因)
-                    log.error("当前抓拍照比对任务处理失败!examRecordDataId:{}, error:{}", examRecordDataId, e.getMessage(), e);
+                    log.error("当前人脸比对任务处理失败!examRecordDataId:{}, error:{}", examRecordDataId, e.getMessage());
                 }
                 }
             } finally {
             } finally {
                 SequenceLockHelper.releaseLockSimple(lockKey);
                 SequenceLockHelper.releaseLockSimple(lockKey);

+ 3 - 3
examcloud-core-oe-task-service/src/main/java/cn/com/qmth/examcloud/core/oe/task/service/job/SyncExamRecordDataJobHandler.java

@@ -77,7 +77,7 @@ public class SyncExamRecordDataJobHandler {
 
 
             batchNo++;
             batchNo++;
             sumTodoSize += todoList.size();
             sumTodoSize += todoList.size();
-            log.warn("TODO_LIST_3 shardTotal:{}, shardIndex:{}, sumTodoSize:{}, curTodoSize:{}, batchNo:{}, startId:{}",
+            log.warn("STEP_3 shardTotal:{}, shardIndex:{}, sumTodoSize:{}, curTodoSize:{}, batchNo:{}, startId:{}",
                     shardTotal, shardIndex, sumTodoSize, todoList.size(), batchNo, startId);
                     shardTotal, shardIndex, sumTodoSize, todoList.size(), batchNo, startId);
 
 
             if (CollectionUtils.isEmpty(todoList)) {
             if (CollectionUtils.isEmpty(todoList)) {
@@ -98,10 +98,10 @@ public class SyncExamRecordDataJobHandler {
                         throw e;
                         throw e;
                     } else if (e instanceof SequenceLockException) {
                     } else if (e instanceof SequenceLockException) {
                         // 若锁问题,下次会继续执行
                         // 若锁问题,下次会继续执行
-                        log.warn("当前考试记录数据获取锁失败!examRecordDataId:{}, redisKey:{}", data.getId(), lockKey);
+                        log.warn("当前任务获取锁失败!examRecordDataId:{}, redisKey:{}", data.getId(), lockKey);
                     } else {
                     } else {
                         // 若异常,下次会继续执行(需要排查原因)
                         // 若异常,下次会继续执行(需要排查原因)
-                        log.error("当前考试记录数据处理失败!examRecordDataId:{}, error:{}", data.getId(), e.getMessage(), e);
+                        log.error("当前任务处理失败!examRecordDataId:{}, error:{}", data.getId(), e.getMessage());
                     }
                     }
                 } finally {
                 } finally {
                     SequenceLockHelper.releaseLockSimple(lockKey);
                     SequenceLockHelper.releaseLockSimple(lockKey);