59a39a6e59401f7820c16b2e54b507dbc2a54f8a
문제 (재리뷰 round8 RR8-03-04)
- GrpcOperationLedgerMigrationLockWaitIT의 예외 목록 검사
(everyMigrationListedAsRunningOutsideATransactionIsOneConcurrentIndex
BuildThatSaysSo)는 RUN_OUTSIDE_A_TRANSACTION 위에서 돈다. 목록이 비어
루프가 한 번도 돌지 않고, 단언은 늘 참이다. 거부 조건 셋을 모두 무력하게
바꿔도 통과한다(리뷰 변이 A11). 가이드는 이 테스트가 목록을 지킨다고
적는다.
고른 방법
- 리뷰 권장안: 판정을 static refusalsOf(목록, 트리)로 뺀다. 트리는 파일
이름 → (SQL, executeInTransaction)이다. 실제 목록 검사도 이 메서드를
부른다. 같은 IT에 문자열 fixture로 위반 넷(트리에 없음, 동시 인덱스 문장
없음, executeInTransaction=false 없음, 다른 문장과 섞임)과 허용 하나를
둔다.
- 버린 대안: 판정을 testkit의 ConcurrentIndexMigrationInspector로 옮겨
persistence-jpa 단위 테스트가 fixture를 갖게 한다. optional 빌드로
복사하는 JDK 전용 파일이 늘고, ledger 전용 규칙(트리에 있어야 함)이
testkit에 들어간다.
위험·한계
- fixture 케이스도 클래스의 Testcontainers PostgreSQL이 뜬 뒤 돈다(같은
클래스라 컨테이너 하나를 같이 쓴다).
- RED 없음 — 테스트 구조 개선이다. 대신 변이: 기준 커밋에서 A11 변이가
살아남고, 고친 코드에 같은 변이를 얹으면 위반 fixture가 실패한다.
변이 (desktop, 로그 ~/r9-g3-logs/)
- 기준 3eb3b067 + A11 변이: 목록 검사 1건 rc=0 통과(변이 생존)
- 이 커밋 + 같은 변이: GrpcOperationLedgerMigrationLockWaitIT rc=1,
8건 중 위반 fixture 4건 실패(트리에 없음은 NPE, 나머지 셋은 "Expected
size: 1 but was: 0")
검증 (desktop, 이 커밋의 트리 65218dff, --no-build-cache, 로그 ~/r9-g3-logs/)
- -p optional-platforms :grpc:grpc-operation-ledger-jpa:check rc=0,
test 13건
- 같은 leaf integrationTest rc=0, 52건(새 5건 포함) 실패·skip 0
- 같은 leaf testQualityCheck rc=0
- FROM-CACHE 0
Refs: docs/reviews/2026-11-03-rereview/round8/03-migration.md RR8-03-04
Fixes: 5bb7825336 ("fix(migration): 실패한 동시 인덱스 마이그레이션 복구와 검사기 설명을 실제 동작에 맞춘다")
Optional gRPC platforms
The default application does not depend on grpc/* or grpc-advanced/*, so those projects (the
registry entries with "build": "optional-grpc") are kept out of the main multi-project build. This build preserves their existing project paths and
internal project dependencies while making their configuration opt-in.
./gradlew -p optional-platforms ci
./gradlew -p optional-platforms :grpc:grpc-testkit:grpcInProcessContractTest
adapter:inbound:grpc remains in the main application build because it is an application adapter;
the reusable gRPC platform libraries are optional capability code and live here.
Description
clean-architecture-backend-template에서 빼낸 grpc-library (design-docs repo-structure/05-library-repos.md)
1.7 MiB
Languages
Java
98.3%
Shell
1.5%
Python
0.2%