File tree Expand file tree Collapse file tree
src/main/java/com/threestar/trainus/domain/lesson/issue Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public void reconcileStock() {
7575
7676 // 일정 시간 무응답시 교착상태 방지
7777 boolean isStale = (lastActiveStr != null && (now - Long .parseLong (lastActiveStr ) > 600000 )); // 10분 이상 무응답
78- boolean isRecent = (lastActiveStr != null && (now - Long .parseLong (lastActiveStr ) < 5000 )); // 5초 이내 활동
78+ boolean isRecent = (lastActiveStr != null && (now - Long .parseLong (lastActiveStr ) < 30000 )); // 30초 이내 활동
7979 boolean isNegative = busyCount < 0 ;
8080
8181 // busy 카운터 존재 & 응답 10분 미만
@@ -85,7 +85,7 @@ public void reconcileStock() {
8585 continue ;
8686 }
8787
88- // busy 카운터 = 0 & 5초 내 활동이 있었음 (DB트랜잭션 잠시 대기)
88+ // busy 카운터 = 0 & 30초 내 활동이 있었음 (DB트랜잭션 잠시 대기)
8989 if (busyCount == 0 && isRecent ) {
9090 log .info ("Lesson [{}] recently active. Waiting for safety margin." , lessonId );
9191 continue ;
You can’t perform that action at this time.
0 commit comments