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>
99 lines
4.7 KiB
Markdown
99 lines
4.7 KiB
Markdown
---
|
|
kind: CASE
|
|
slug: messaging-kafka-share-experimental-f01
|
|
title: "등록"이 아무것도 등록하지 않고 성공을 반환한다
|
|
topic: transport-and-provider-semantics
|
|
project: clean-architecture-backend-template
|
|
status: 게시 전
|
|
sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916
|
|
rootTreeNode: case:messaging-kafka-share-experimental-f01
|
|
evidenceCapturedOn: 2026-09-01
|
|
assets:
|
|
- key: messaging-kafka-share-experimental-f01
|
|
file: ../../../final/evidence/rendered/messaging-kafka-share-experimental-f01.svg
|
|
- key: messaging-kafka-share-experimental-f01-diagram
|
|
file: ../../../final/assets/diagrams/messaging-kafka-share-experimental-f01.svg
|
|
evidence:
|
|
- ../../../final/evidence/raw/messaging-kafka-share-experimental-f01.txt
|
|
source:
|
|
- 원본 분석 절은 analysis/messaging/messaging-kafka-share-experimental.md#L467 이다.
|
|
module: messaging-kafka-share-experimental
|
|
priority: P2
|
|
---
|
|
|
|
# "등록"이 아무것도 등록하지 않고 성공을 반환한다
|
|
|
|
KafkaShareGroupRegistrar.register(profile, spec)이 spec을 Objects.requireNonNull로만 처리하고 버린다. ShareRegistration은 profile과 AtomicBoolean 둘만 갖는다.
|
|
|
|
## 관계
|
|
|
|
- **허용 의존 목록은 상한이므로 미사용을 잡지 않는다 — 그것을 잡으려면 별도 검사가 필요하다**
|
|
같은 분석 리프에서 끌어낸 규칙이다.
|
|
- **leaf의 각 public 클래스는 자기 레인에 테스트를 갖는다**
|
|
같은 분석 리프에서 끌어낸 규칙이다.
|
|
- **에러 메시지가 지시하는 설정은 그 설정을 읽는 코드와 함께 존재해야 한다**
|
|
같은 분석 리프에서 끌어낸 규칙이다.
|
|
- **구성 오류는 한 예외 타입과 안정 코드로 보고한다**
|
|
같은 분석 리프에서 끌어낸 규칙이다.
|
|
|
|
## 문제
|
|
|
|
KafkaShareGroupRegistrar.register(profile, spec)이 spec을 Objects.requireNonNull로만 처리하고 버린다.
|
|
|
|
ShareRegistration은 profile과 AtomicBoolean 둘만 갖는다.
|
|
|
|
## 결론
|
|
|
|
Kafka 소비자가 만들어지지 않고(import org.apache.kafka 0건), spec.sink가 저장되지 않으므로 어떤 전달도 일어나지 않는다.
|
|
|
|
반환된 registration은 isActive() == true를 보고한다.
|
|
|
|
같은 클래스의 javadoc이 pause를 조용히 무시하는 것을 거절한 이유로 "would let a retry policy that depends on pausing appear to work while doing nothing"을 든다.
|
|
|
|
register 자체가 정확히 그 형태다 — 성공을 반환하고 아무것도 하지 않으며 isActive()가 true다.
|
|
|
|
오늘 호출자가 없으므로 사고는 아니지만, 이 leaf를 배선하는 사람이 가장 먼저 부를 메서드다.
|
|
|
|
## 검증 환경
|
|
|
|
OpenJDK : 21.0.12 java -version 으로 확인
|
|
Gradle : 9.0.0 src/gradle/wrapper/gradle-wrapper.properties 의 distributionUrl 로 확인
|
|
확인 방식 : register 본문에서 spec 이 보관되는 필드 유무와 sink 호출 지점 확인
|
|
소스 수정 : x
|
|
|
|
## 재현 조건
|
|
|
|
원문은 analysis/messaging/messaging-kafka-share-experimental.md#L467 에 있다.
|
|
|
|
## 본문
|
|
|
|
<!-- body:start -->
|
|
|
|
`KafkaShareGroupRegistrar.register(profile, spec)`이 `spec`을 `Objects.requireNonNull`로만 처리하고 버린다.
|
|
|
|
## 등록이 버리는 것
|
|
|
|
:::evidence key="messaging-kafka-share-experimental-f01-diagram" alt="profile 과 AtomicBoolean 만 register 가 보관하는 것 안에 놓이고 spec 과 sink 가 바깥에 빗금으로 놓인다" caption="등록이 버리는 것" zoom="false"
|
|
:::
|
|
|
|
`ShareRegistration`은 `profile`과 `AtomicBoolean` 둘만 갖는다. Kafka 소비자가 만들어지지 않고(`import org.apache.kafka` 0건), `spec.sink`가 저장되지 않으므로 어떤 전달도 일어나지 않는다.
|
|
|
|
## register 가 spec 에 하는 일
|
|
|
|
:::evidence key="messaging-kafka-share-experimental-f01" alt="분석 문서 analysis/messaging/messaging-kafka-share-experimental.md 에서 이 기록의 근거 절을 그대로 잘라낸 15줄. 코드베이스를 측정한 것이 아니라 원본 판정이 무엇을 적었는지를 보여 준다." caption="analysis/messaging/messaging-kafka-share-experimental.md 발췌 — 15줄" zoom="true"
|
|
:::
|
|
|
|
## 같은 클래스가 이 형태를 거절한 적이 있다
|
|
|
|
반환된 registration은 `isActive() == true`를 보고한다. 같은 클래스의 javadoc이 pause를 조용히 무시하는 것을 거절한 이유로 "would let a retry policy that depends on pausing appear to work while doing nothing"을 든다. `register` 자체가 정확히 그 형태다 — 성공을 반환하고 아무것도 하지 않으며 `isActive()`가 true다.
|
|
|
|
## 오늘 호출자는 없다
|
|
|
|
사고는 아니지만, 이 leaf를 배선하는 사람이 가장 먼저 부를 메서드다.
|
|
|
|
## 확인하지 못한 것
|
|
|
|
이 리프를 완성할 계획이 있는지 확인할 수 없었다. 커밋이 대량 커밋뿐이고 기록이 없다.
|
|
|
|
<!-- body:end -->
|