CopyRequest enqueues Sidekiq job inside transaction — visibility race
Service
cupixworks-worker
Occurrences
7
Status
Reported
Confidence
80%
Actionability
28%
Cluster ID
01836c87-d6b5-4585-b0a9-87a0daa2b8ff
First Seen
2026-07-09 12:00 UTC
Last Seen
2026-07-09 12:00 UTC
Actions
CopyRequest enqueues Sidekiq job inside transaction — visibility race
What Happened#
2026-07-09 21:00:43 KST(eu-central-1, production, tenant cupix), CopyRequest#run_copies_by_sql 이 실행 중이던 outer transaction 내부에서 Floorplan 등 다수 child model 에 대해 insert_all! 후 BulkSavePartialJsonToFileWorker.perform_async 를 호출했다. Worker 는 다른 DB connection 에서 Model.where(id: ids) 를 수행하지만 outer transaction 이 아직 커밋되지 않아 대상 행이 보이지 않았고, 6 회 지수 backoff 재시도(0.1 s → 3.2 s, 총 6.3 s) 후 does not match after 6 retries 로 실패했다. 같은 초에 Floorplan, Level, Room, Pointcloud, Cluster, Capture, Bim, BimRevision, AnnotationLayer, Category, Review, Record, FloorplanSource 등 13 개 child model 클래스에서 동일 패턴의 15 개 error 로그가 발생했다.
Quick Facts#
| Field | Value |
|---|---|
| exception.class | (no exception raised, logged as error) |
| exception.message | Floorplan with ids [6434, 6435, 6436, 6437] does not match after 6 retries |
| top_frame | app/workers/bulk_save_partial_json_to_file_worker.rb:66 |
| env | production, eu-central-1 |
Affected Teams#
| Team / Domain | Error Count | Impact |
|---|---|---|
| cupix (tenant) | 15 로그 (13 model class) | CopyRequest 로 생성된 신규 레코드에 대한 Data Warehouse partial JSON 파일이 누락. 사용자 요청 경로(HTTP)에는 영향 없음. |
Timeline#
- 2026-07-09 21:00:37 KST —
BulkSavePartialJsonToFileWorker가 Floorplan[6434, 6435, 6436, 6437]조회 실패, retry 1 시작 (0.1 s) - 2026-07-09 21:00:37 KST — retry 2~4 연속 실패 (0.2 s, 0.4 s, 0.8 s)
- 2026-07-09 21:00:37 KST — retry 5 실패 (1.6 s)
- 2026-07-09 21:00:39 KST — retry 6 실패 (3.2 s)
- 2026-07-09 21:00:41 KST —
FloorplanSource [3357, 3358]첫 error 로그 발생 - 2026-07-09 21:00:43 KST — Floorplan/Level/Record/Capture/Cluster 5 건 error 로그 발생 (본 cluster 포함)
- 2026-07-09 21:00:45 KST — CopyRequest 가
Begin/Finished Copying Room, AnnotationLayer, BimRevision, Bim, Deviation, Reference, Category, Review, Bookmark, Comment, Report등 다수 child model 처리 로그 방출 (outer transaction 은 아직 진행 중) - 2026-07-09 21:00:51 KST — Room/Pointcloud/AnnotationLayer/BimRevision/Bim/Review/Category 등 8 건 error 로그 발생, 이후 동일 error 재발생 없음
Scoring#
Confidence 80% · Actionability 28%
Confidence#
| Dimension | Score | Detail |
|---|---|---|
| Evidence completeness | 5/5 | 19 code refs, 5 log queries |
| Code path explicitness | 3/3 | 19 file:line refs |
| Log evidence | 2/3 | section, query |
| RCA structure | 3/3 | 3/3 sections |
| Revision history | 0/3 | 0 revision(s) |
| Agent execution | 3/3 | success |
Actionability#
| Dimension | Score | Detail |
|---|---|---|
| Fix complexity | 1/5 | critical |
| Affected files | 1/5 | 25 file(s) |
| Single repo | 1/3 | 3 service(s) |
| Immediate actions | 0/3 | absent |
| Testability | 0/3 | no test info |
| External dependency | 1/3 | external deps found |
| Data migration | 3/3 | no migration |