[Test] OpenSQL 장애 실험 재현·증거 수집 기반 구축 - #353
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: DocGrid/docgrid/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
OpenSQL 장애 실험의 실행 조건과 요청 결과를 DB 밖의 append-only JSONL에 기록하고, 원본에서 CSV·집계 JSON을 재생성·검증합니다. 장애가 난 순간 응답을 확인하지 못한 요청은 성공이나 실패로 추정하지 않고
UNKNOWN으로 남깁니다.변경 사항
run_id, UTC 타임라인 기록ACKNOWLEDGED(2xx) /FAILED(3xx~5xx) /UNKNOWN분리검증
python3 -m unittest scripts/opensql/test_ha_evidence.py -v— 6개 통과python3 -m py_compile scripts/opensql/ha_evidence.py scripts/opensql/test_ha_evidence.py— 통과git diff --cached --check— 통과이 PR은 증거 수집 기반만 추가합니다. 실제 GCP 3노드 장애 주입, 자동 전환, RTO/RPO 또는 DB 내구성은 아직 측정하지 않았습니다. 2xx는 앱 응답이 확인됐다는 뜻이며 DB 내구성은 후속 실험에서 요청 ID와 실제 DB 상태를 대조해야 합니다.
verify는 형식 오류와 원본·파생 파일의 불일치를 찾지만, 유효한 JSONL을 악의적으로 바꾸고 집계를 다시 만든 경우까지 암호학적으로 증명하지는 않습니다.Closes #352