Elasticsearch::Transport::Transport::Errors::NotFound: [404] {"error":{"root_cause":[{"type":"index_not_found_exception"
Service
cupixvista-elasticsearch
Occurrences
36
Status
Reported
Confidence
85%
Actionability
28%
Cluster ID
0c1e52c7-96ff-478b-9216-fca1eee351b5
First Seen
2025-05-14 10:00 UTC
Last Seen
2026-08-01 00:01 UTC
Actions
Elasticsearch::Transport::Transport::Errors::NotFound: [404] {"error":{"root_cause":[{"type":"index_not_found_exception"
What Happened#
cupixworks-api 의 capture 검색(Api::V1::CapturesController#index → CaptureRepository)이 Elasticsearch 에 보내는 terms 쿼리에 사용자가 접근 가능한 capture ID 전부를 인라인으로 넣는다. 접근 권한이 매우 넓은 사용자(281,707개 capture 접근)의 경우 이 ID 목록이 Elasticsearch 의 index.max_terms_count(65,536 → 100,000) 한도를 초과하여 query_shard_exception ([400]) 으로 검색이 실패한다.
중요 — Representative Error 는 STALE 하다. 클러스터에 고정된 Representative Error(index_not_found_exception, "no such index [captures]", first_seen 2025-05-14) 는 이 Error Tracking 이슈의 최초 샘플이다. last_seen(2026-08-01) 근처의 실제 최근 로그는 전혀 다른 메시지 — query_shard_exception / "The number of terms [281707] ... has exceeded the allowed maximum of [100000]" — 를 보여준다. 아래 분석과 판정은 최근 발생 메시지 기준이다.
Quick Facts#
| Field | Value |
|---|---|
| exception.class | Elasticsearch::Transport::Transport::Errors::BadRequest (recent) / ...Errors::NotFound (stale representative) |
| exception.message | [400] ... query_shard_exception ... The number of terms [281707] used in the Terms Query request has exceeded the allowed maximum of [100000] |
| top_frame | app/repositories/capture_repository.rb:662-681 |
| es_index | captures (index_uuid g-WDOysARW6pDrn--kkcwA) |
| env | production (cupixworks-api) |
Affected Teams#
| Team / Domain | Error Count | Impact |
|---|---|---|
| cupixworks-api (capture search) | 36 (issue total) | 광범위한 접근 권한을 가진 사용자의 capture 목록/검색 API 가 [400] 로 실패 — 해당 사용자는 capture 리스트를 조회할 수 없음 |
Timeline#
- 2025-05-14 19:00 KST — Error Tracking 이슈 first_seen. 당시 대표 샘플은
index_not_found_exception(captures 인덱스 부재 시점). - 2026-07-27 19:53 KST — 최근 발생: terms 수 89,058 이 한도 65,536 초과 (
query_shard_exception). - 2026-07-29 23:19 KST — terms 수 281,693 이 한도 100,000 초과.
- 2026-07-30 23:16–23:17 KST — terms 수 281,707 이 한도 100,000 초과 (다발성).
- 2026-08-01 09:01 KST — 클러스터 last_seen.
Scoring#
Confidence 85% · Actionability 28%
Confidence#
| Dimension | Score | Detail |
|---|---|---|
| Evidence completeness | 5/5 | 10 code refs, 4 log queries |
| Code path explicitness | 3/3 | 10 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 | 8 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 |