Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/state-ownership-and-concurrency/case/case-grpc-policy-f04.md
T
DongHyeonkaandClaude Fable 5.1 b25357c48a docs(clean-architecture-backend-template): fold analysis into final and re-select one topic
- analysis/·source-index·state.json 을 final/document.md 제2부·제3부로 접었다. SSOT 는 하나다
- 파일럿 — commit-ambiguity-as-a-result 를 새 기준으로 재선별. 후보 14 → 글감 5
  (PROMOTE 5 · MERGE_INTO 3 · KEEP_IN_SSOT 4 · 보류 2). 기록 5건을 다시 썼고 그림 1개를
  techviz 로 만들었다
- 재선별이 잡은 것: 제1부 §6.2·§11.1 이 자기 §13.2 와 어긋나 있었다(레인을 안 돌렸다 vs
  돌렸다) — 정정. 이미 답이 나와 있던 Question 을 HEAD 재실행 질문으로 다시 세웠다.
  Concept 이 인용한 코드가 SSOT 에 없어 뺐다
- candidateScope·sourceRepository 기록. 나머지 43개 주제는 재선별 대기(PENDING 905)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-07 12:39:20 +09:00

3.3 KiB

kind, slug, title, topic, project, status, sourceRevision, rootTreeNode, evidenceCapturedOn, assets, evidence, source, module, priority
kind slug title topic project status sourceRevision rootTreeNode evidenceCapturedOn assets evidence source module priority
CASE grpc-policy-f04 완료 조정자가 요청 경로에서 동기화 없는 가변 리스트를 변경한다 state-ownership-and-concurrency clean-architecture-backend-template 게시 전 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 case:grpc-policy-f04 2026-09-01
key file
grpc-policy-f04 ../../../final/evidence/rendered/grpc-policy-f04.svg
key file
grpc-policy-f04-diagram ../../../final/assets/diagrams/grpc-policy-f04.svg
../../../final/evidence/raw/grpc-policy-f04.txt
원본 분석 절은 final/document.md#a20-grpc-policy#L271 이다.
grpc-policy P2

완료 조정자가 요청 경로에서 동기화 없는 가변 리스트를 변경한다

synchronized·Concurrent*·volatile·Lock 전부 0 이고 단일 스레드 전용 표기도 없다. 같은 리프의 GrpcSerializedStreamWriter 는 아홉 마커로 제대로 닫혀 있어, 이 리프가 동시성을 인지하고 있음을 보여 준다.

문제

synchronized·Concurrent*·volatile·Lock 전부 0 이고 단일 스레드 전용 표기도 없다.

같은 리프의 GrpcSerializedStreamWriter 는 아홉 마커로 제대로 닫혀 있어, 이 리프가 동시성을 인지하고 있음을 보여 준다.

결론

reconcile 은 완료 결과가 불확실한 호출마다 불린다 — 장애 상황에서 동시에 몰리는 경로다.

그리고 pending 이 담는 것은 사람이 조정해야 하는 연산 목록이므로, 유실은 조정되지 않은 채 잊히는 연산이 된다.

검증 환경

OpenJDK : 21.0.12 java -version 으로 확인 Gradle : 9.0.0 src/gradle/wrapper/gradle-wrapper.properties 의 distributionUrl 로 확인 확인 방식 : GrpcSerializedStreamWriter 참조 11건 검색과 조정자 쪽 동기화 마커 유무 대조 소스 수정 : x

재현 조건

원문은 final/document.md#a20-grpc-policy#L271 에 있다.

본문

synchronized·Concurrent*·volatile·Lock 전부 0 이고 단일 스레드 전용 표기도 없다.

동기화가 걸린 곳과 아닌 곳

:::evidence key="grpc-policy-f04-diagram" alt="GrpcSerializedStreamWriter 만 동기화 마커 안에 놓이고 완료 조정자의 pending 이 바깥에 빗금으로 놓인다" caption="동기화가 걸린 곳과 아닌 곳" zoom="false" :::

같은 리프의 GrpcSerializedStreamWriter 는 아홉 마커로 제대로 닫혀 있어, 이 리프가 동시성을 인지하고 있음을 보여 준다.

GrpcSerializedStreamWriter 참조 위치

:::evidence key="grpc-policy-f04" alt="코드베이스에서 GrpcSerializedStreamWriter 를 검색한 출력 11줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="GrpcSerializedStreamWriter 코드베이스 검색 — 11줄 · exit 0" zoom="true" :::

하필 장애 상황에 몰리는 경로다

reconcile 은 완료 결과가 불확실한 호출마다 불린다. 그리고 pending 이 담는 것은 사람이 조정해야 하는 연산 목록이므로, 유실은 조정되지 않은 채 잊히는 연산이 된다.

확인하지 못한 것

요청 경로에서 동시 변경을 재현하지 않았다. 동기화 마커가 0 이고 단일 스레드 전용 표기도 없다는 것으로 판정했다.