The keycloak project ended with four open questions that design could not
settle. A two-VM lab was built to answer them by measurement, and this is
that material: 26 experiments, 125 raw command outputs, 22 browser captures.
Follows the import procedure in README.md.
source/ the originating repository verbatim — 78 documents, 28 SVGs,
8 manifests, plus .source-revision recording the commit
final/ the SSOT
document.md 729 lines written from the 29 experiment documents, not
concatenated: what was predicted, what was measured, and
where the measurement itself was wrong
evidence/raw 125 outputs, flattened to <experiment>__<file> because
the originals collided (01-baseline.txt appeared three
times) and the audit only globs the top level
evidence/meta one per raw file; command and exitCode are null and the
README says why rather than inventing them
evidence/browser 22 captures
assets/ three diagrams through techviz
.techviz/ their VizSpecs
A separate project rather than an addition to keycloak: the B-layer answers
that project's four questions, but the A, C and D layers are about cluster
failure, SSO and operations, and one document.md should hold one subject.
The four question records there can point here through 관계.
Recorded rather than papered over: only three of the 28 diagrams were
remade. The repository forbids hand-drawn SVG and forbids titles inside the
canvas; all 28 originals carry both, so converting them is redrawing, not
reformatting. They stay in source/ and the gap is written into the document.
verify-pipeline.py passes. audit-records.py reports no issues.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
3.3 KiB
kind, slug, title, topic, project, status, sourceRevision, rootTreeNode, evidenceCapturedOn, assets, evidence, source, module
| kind | slug | title | topic | project | status | sourceRevision | rootTreeNode | evidenceCapturedOn | assets | evidence | source | module | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CONCEPT | adapter-outbound-persistence-jpa-c06 | 설정으로 completion unknown을 다시 살릴 수 없다 | state-machines-and-ownership | clean-architecture-backend-template | 게시 전 | 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 | concept:adapter-outbound-persistence-jpa-c06 | 2026-09-01 |
|
|
|
adapter-outbound-persistence-jpa |
설정으로 completion unknown을 다시 살릴 수 없다
RetryProfile의 retryable category allowlist가 타입에서 좁혀져 있고, COMPLETION_UNKNOWN을 넣으면 constructor가 즉시 거부한다.
본문
TransactionProfile은 name·propagation·isolation·timeout·readOnly·retryProfile을 결합한다. write profile은 positive timeout이 필수다. read-only는 zero timeout을 "connection default" 의미로 허용한다. 지원 propagation을 REQUIRED / MANDATORY / REQUIRES_NEW로 좁혀 SUPPORTS/NESTED/NOT_SUPPORTED/NEVER처럼 "실제로 transaction 안에 있는가"를 흐리는 mode를 surface에서 제거했다. isolation 역시 PostgreSQL에서 의미가 겹치는 READ_UNCOMMITTED를 expose하지 않는다.
allowlist에 들어갈 수 있는 범주
:::evidence key="adapter-outbound-persistence-jpa-c06-diagram" alt="allowlist 경계 안에 직렬화 실패와 낙관적 충돌과 락 획득 실패가 들어 있고 COMPLETION_UNKNOWN 이 경계 밖 빗금 상자로 놓인 구조" caption="allowlist 에 들어갈 수 있는 범주" zoom="false" :::
retryable category allowlist는 serialization failure, optimistic conflict, lock not available, connection unavailable 계열로 제한된다. COMPLETION_UNKNOWN을 넣으면 constructor가 즉시 거부한다. Unique constraint 같은 ineligible category도 거부한다. 즉 failure translator가 retryability를 판단하고, profile이 category allowlist를 가진다고 해서 "어떤 failure도 설정으로 retry 가능하게" 만들 수 없다.
RetryDecision 참조 위치
:::evidence key="adapter-outbound-persistence-jpa-c06" alt="코드베이스에서 RetryDecision 를 검색한 출력 40줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="RetryDecision 코드베이스 검색 — 40줄 · exit 0" zoom="true" :::
모르겠음과 즉시 한 번 더를 구분한다
RETRY_FULL_TRANSACTION을 포함한 세 가지 중 retry만 non-zero delay를 가질 수 있다. 이 분리 덕분에 completion unknown이 delay=0 retry처럼 표현되지 않는다.
reason에 길이 상한이 없다
RetryDecision.reason은 javadoc상 bounded diagnostic/low-cardinality-safe string으로 설명된다. 그러나 constructor는 non-null/nonblank만 확인하고 길이/형식 상한은 없다. runtime constructor probe에서는 100,000-character reason도 accepted됐다. 다만 실제 JpaRetryObservation은 decision.reason을 metric tag로 사용하지 않는다.