fix: 런타임 버그 수정 및 성능 개선 (closes #42)#43
Merged
Merged
Conversation
release: dev → main
dev → main (Prometheus history range/step 수정 + 메트릭 스케줄러)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tub-main chore: ai 패키지 불필요한 MetricPoint 스텁 삭제 (#36)
- TicketActionLogRepository: findByTicketId → findByTicket_Id - TicketMetricSnapshotRepository: findByTicketId → findByTicket_Id - TicketService: getActionLogs, getMetricSnapshot 메서드명 동기화 - AnomalyDetectionService: Prometheus 중복 호출 제거 및 히스토리 조회 최적화 - TicketService: 티켓 번호 포맷 %03d → %06d, DB id 기반 생성으로 동시성 문제 해결 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
closes #42
변경 사항
TicketActionLogRepository:findByTicketId→findByTicket_IdTicketMetricSnapshotRepository:findByTicketId→findByTicket_IdTicketService:getActionLogs(),getMetricSnapshot()메서드명 동기화AnomalyDetectionService: Prometheus 중복 호출 제거 및 히스토리 조회 최적화TicketService: 티켓 번호 포맷%03d→%06d, DB id 기반 생성으로 동시성 문제 해결작업 내용 상세
🔴 런타임 버그
TicketActionLog,TicketMetricSnapshot엔티티에ticketId필드가 없고ticket객체만 존재함에도 Repository에서findByTicketId를 사용 → Spring Data JPA가 경로를 찾지 못해 런타임 에러 발생.findByTicket_Id로 수정하여 중첩 필드 탐색이 올바르게 동작하도록 수정.🟡 성능 개선
checkPod()에서 이미 조회한 cpu/memory/errorRate를handleAnomaly()로 전달하여 재조회 제거체크리스트
./gradlew build성공 확인{ status, message, timestamp }) 준수