fix(db): candidate_source 컬럼 VARCHAR(30)→(100) 확장 (V031) #84
No reviewers
레이블
레이블 없음
마일스톤 없음
담당자 없음
참여자 2명
알림
마감일
마감일이 설정되지 않았습니다.
의존성
No dependencies set.
Reference: gc/kcg-ai-monitoring#84
불러오는 중...
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/candidate-source-length"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
변경 사항
gear_group_parent_candidate_snapshots.candidate_sourceVARCHAR(30) → (100) 확장 (V031)원인
prediction/algorithms/gear_parent_inference.py:875의
candidate_source = ','.join(sorted(meta['sources']))가 여러 source 라벨(
CORRELATION/EPISODE/LABEL/LINEAGE/MATCH) 을 쉼표 join — 5개 전부 결합 시 ~39자psycopg2.errors.StringDataRightTruncation_insert_candidate_snapshots전체 ROLLBACK → gear correlation 스테이지 실패발견 경위
stage_runner+logger.exception전환 후 journal 에 풀 stacktrace 노출logger.warning("gear correlation failed: ...")한 줄만 찍혀 원인 특정 불가했음영향
analysis cycle: 7912 vessels, 7912 upserted, 545.53s확인)gear_group_parent_candidate_snapshots테이블 갱신은 스킵되던 상태수정안 결정
TEXT— 짧은 라벨 집합 의미상 VARCHAR 가 자연스러움[:30]trim — source 절단으로 의미 손실, 부적합배포 절차
grep GearGroupParentCandidateSnapshot backend/: 0건) → 재빌드 불필요테스트
ALTER TABLE ... ALTER COLUMN ... TYPE VARCHAR(100))flyway_schema_history에 V031 적용 확인journalctl -u kcg-ai-prediction에서 "gear correlation failed" 로그 사라짐 확인SELECT count(*) FROM kcg.gear_group_parent_candidate_snapshots WHERE observed_at > now() - interval '15 min';> 0 확인관련
stage_runner도입) 이 이 버그를 가시화V031 candidate_source 확장 승인 (via /mr skill, stage_runner 로 드러난 기존 버그 fix)