ES /docs

Api::V1::PointcloudsController#check_cpc_mesh_uploading (avg 50899ms, max 51359ms)

Service
cupixworks-api
Occurrences
8
Status
Dismissed
Confidence
85%
Actionability
28%
Cluster ID
5e6bab5f-9853-4b93-9e34-6b7f233ed35d
First Seen
2026-07-09 02:24 UTC
Last Seen
2026-08-04 19:42 UTC
Actions
현재 상태 dismissed 에서는 실행할 액션이 없습니다.

Api::V1::PointcloudsController#check_cpc_mesh_uploading (avg 50899ms, max 51359ms)

What Happened#

2026-07-09 11:24 KST 경 cupixworks-api production 환경에서 pointcloud 1210226 를 대상으로 한 PUT /api/v1/pointclouds/:id/check_cpc_mesh_uploading 요청 2건이 각각 약 50.9초와 51.4초 지속되다가 ActiveRecord::LockWaitTimeout (Mysql2::Error::TimeoutError: Lock wait timeout exceeded) 으로 502 응답을 반환했다. 두 요청 모두 동일 pointcloud row 에 대한 다른 트랜잭션이 lock 을 보유하는 동안 InnoDB innodb_lock_wait_timeout (기본 50초) 을 초과했다.

Quick Facts#

Field Value
exception.class ActiveRecord::LockWaitTimeout
exception.message Mysql2::Error::TimeoutError: Lock wait timeout exceeded; try restarting transaction
top_frame app/models/concerns/cpc_mesh.rb:26 (check_cpc_mesh_uploading) → state machine uploaded_cpc_mesh_state
env production, us-west-2
resource_name Api::V1::PointcloudsController#check_cpc_mesh_uploading

Affected Teams#

Team / Domain Error Count Impact
cupixworks-api (Pointcloud upload flow, tenant cupix) 2 Pointcloud 1210226 CPC mesh 업로드 확인 폴링 2회 실패. 클라이언트가 재시도하여 최종적으로 11:26:45~46 UTC+9 에 200 으로 성공하였고, 사용자 관점 blocking 은 최대 약 1분 지연 수준

Timeline#

  1. 2026-07-09 11:23:14 KST — Pointcloud 1210226 state initializing → queued 로 전환
  2. 2026-07-09 11:23:16–11:23:19 KST — 클라이언트가 check_uploading, check_octree_uploading, cpc_mesh_upload_url, update, resources, create_potree_upload_credentials 등 동일 pointcloud 에 대한 다수 PUT/POST 를 짧은 간격으로 발행
  3. 2026-07-09 11:24:23 KSTfirst_seen. 첫 check_cpc_mesh_uploading 요청이 pointclouds row 의 lock 을 기다리기 시작 (Datadog trace 1703288425810257413)
  4. 2026-07-09 11:25:15 KST — 첫 502 응답 (Lock wait timeout exceeded, 51.4초 소요)
  5. 2026-07-09 11:25:46 KST — Postprocess 진행 중 (potree_upload_credentials 200 응답)
  6. 2026-07-09 11:26:08 KST — 두 번째 502 응답 (동일 에러, 50.9초 소요) — 이 시점이 last_seen
  7. 2026-07-09 11:26:44 KST — Pointcloud state queued → done 로 전환, start_finalization 호출, editing entity 생성
  8. 2026-07-09 11:26:45–46 KST — 이후 check_cpc_mesh_uploading 재폴링 200 성공, 클러스터 자연 해소

Scoring#

Confidence 85% · Actionability 28%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 8 code refs, 8 log queries
Code path explicitness 3/3 8 file:line refs
Log evidence 3/3 section, query, pattern
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 14 file(s)
Single repo 1/3 4 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