Skip to content

fix :: 운영 Flyway 검증 실패 복구 - 삭제된 dedup 마이그레이션 복원 - #679

Merged
1210thatman merged 1 commit into
mainfrom
hotfix/flyway-restore-dedup
Jul 2, 2026
Merged

1210thatman merged 1 commit into
mainfrom
hotfix/flyway-restore-dedup

Conversation

@1210thatman

Copy link
Copy Markdown
Member

문제

운영 배포 시 FlywayValidateException: Migrations have failed validation 으로 신규 파드가 crash-loop.

운영 flyway_schema_history 는 아래 3건을 기대함:

rank version type checksum
1 1 BASELINE (baseline)
2 202605142000 SQL 1874833870
3 202606041000 SQL 634640209

그러나 main 브랜치에는 V202606041000__deduplicate_and_add_unique_constraints.sql 파일이 삭제되어 있어 rank3가 누락 → 검증 실패.

변경

  • 삭제된 dedup 마이그레이션 파일 복원 (origin/develop 기준)
  • 복원 파일의 Flyway CRC32 = 634640209 로 운영 rank3와 정확히 일치 검증 완료
  • V202605142000__Drop_User.sql(1874833870)은 이미 일치, V1__baseline.sql은 baseline-version(1) 이하라 검증에서 무시됨

영향

  • 운영 DB 무변경 (파일을 이력에 맞추기만 함)
  • 머지 후 배포하면 validate 통과 → 정상 부팅

🤖 Generated with Claude Code

- V202606041000__deduplicate_and_add_unique_constraints.sql 복원 (checksum 634640209, 운영 rank3와 일치)
- Drop_User(1874833870)는 이미 일치, V1은 baseline 이하로 무시됨
- 이 파일 누락이 FlywayValidateException 및 신규 파드 crash-loop의 원인

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e70c5b80-3c6d-4a49-8f28-5951002c5a2b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hotfix/flyway-restore-dedup

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@1210thatman
1210thatman merged commit 0e3d5c9 into main Jul 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant