Repository navigation
파싱 요청 테이블 분리 (2단계) - #1083
Closed
m-a-king wants to merge 2 commits into
Closed
파싱 요청 테이블 분리 (2단계)#1083m-a-king wants to merge 2 commits into
m-a-king wants to merge 2 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
m-a-king
force-pushed
the
refactor/1073-parse-requests-scheduler
branch
2 times, most recently
from
September 13, 2026 13:23
e872736 to
64692e3
Compare
- 집기·stale 회수·마감·소유권·박동이 parse_requests 를 조회
- 이전: item_snapshots 의 status·attempt_count
- stale 시계를 heartbeat_at 으로 분리. 집기 시점에 함께 기록
- 원인: 비워 두면 워커 제출이 거부된 요청이 stale 스캔에서 빠져 마감까지 방치
- 이전: updated_at 하나가 집기·소유권 획득·박동 겸직
- 결과 전이가 요청 락을 먼저 잡고 버전 락을 뒤에 획득
- 두 행을 함께 쓰는 경로가 전부 같은 순서. 교착 없음
- 워커와 박동 레지스트리의 키를 requestId 로 교체
- 지목 객체의 snapshotId 제거
- 원인: 워커 인자가 requestId 로 바뀌며 마지막 소비자 소멸. 결과 버전은 요청이 보유
- 병합 재부모화에 요청 추가
- 원인: 요청이 item_id 로 입력을 조인. 미추종 시 soft delete 된 loser 를 조인해 입력 없음으로 종결
- 버전 status 미러링은 tolerant 전이로 유지
- 원인: 카드 표시값이 아직 버전 status 를 조회
- 조건: 배포 교체 구간에 옆 컨테이너가 버전을 선점. check 강제 시 배치 롤백으로 디스패치 정지
- 4단계에서 묶음째 삭제
- 마이그레이션으로 진행 중 버전 전부 종결, 1단계 요청 상태 백필
- 원인: 요청 행이 없는 진행 중 버전은 새 스케줄러 눈에 안 보여 영구 정체
- 비용: 배포 순간 진행 중이던 파싱 유실. 마감 3분이라 영향 구간이 좁음
- 요청과 결과 버전을 한 벌로 적재하는 헬퍼를 클래스별로 추가 - stale·마감 재현을 parse_requests 의 heartbeat_at·created_at 조작으로 교체 - 전이·소유권 호출 인자를 requestId 로 교체 - 이전: snapshotId. 둘 다 Long 이라 컴파일은 통과하고 런타임에 실패 - 좀비 폐기 테스트의 정리 시점에 레지스트리 해제 대기 추가 - 원인: 폐기 로그가 전이 트랜잭션 안에서 기록. 커밋 전 정리가 요청 행 락과 충돌
m-a-king
force-pushed
the
refactor/1073-parse-requests-scheduler
branch
from
September 13, 2026 13:27
64692e3 to
a8793cc
Compare
Open
Collaborator
Author
#1176 으로 대체
|
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.
Situation
Task
범위
Action
큐 이관
시각 분리
전이 원자성
버전 status 미러링 유지
결정
구현
Result
마감 종결 테스트 간헐 실패 소멸
후속
연관 이슈