Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE 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 |
hwistlezz
marked this pull request as ready for review
September 4, 2026 14:29
gichanGim
force-pushed
the
feat/#205/media-expired-cleanup
branch
from
September 9, 2026 00:25
425b948 to
f7e619d
Compare
hwistlezz
changed the base branch from
feat/#203/backfill-failure-reporting
to
develop
September 16, 2026 15:03
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.
🔥 작업 내용 (What)
업로드를 끝내지 않았거나 콘텐츠에 연결하지 않은 이미지, 변환에 실패한 파일을 보존 기간이 지난 뒤 정리하도록 추가했습니다.
삭제 직전에 DB 상태를 다시 확인하고, S3 정리가 끝난 뒤에만 DB 처리를 마칩니다. 중간에 실패하거나 서버가 재시작되면 남은 작업을 이어서 처리합니다. 기본 설정에서는 실행하지 않습니다.
🧩 변경 사항 (Details)
PURGING상태와purgeToken을 저장한 뒤, transaction 밖에서 S3 object version을 삭제합니다. 일부만 삭제됐다면 DB를 먼저 제거하지 않습니다.V25에서 재시도 시각과 조회 인덱스를 추가했습니다. keyset 방식으로 대상을 순환 조회하며, 기본 처리량은 프로세스당 한 실행에서 최대 50개입니다.docs/media/asset-cleanup-runbook.md에 설정, DRY_RUN 확인, 삭제 승인, 중단과 재시도 절차를 정리했습니다.테스트
425b948에서./gradlew.bat clean build --no-daemon통과: 테스트 991개, 실패·오류·건너뛴 테스트 0개.git diff --check통과. 테스트 종료 과정에서 MySQL 연결·EPR 종료 경고가 있었지만 최종 빌드 종료 코드는 0이고 테스트 XML에도 실패는 없습니다.📸 스크린샷
화면 변경은 없습니다. 테스트 결과와 CI 링크는 위에 정리했습니다.
develop으로 변경해야 합니다.CleanupAccessEnabled=false,AWS_MEDIA_CLEANUP_ENABLED=false,AWS_MEDIA_CLEANUP_MODE=DRY_RUN이 기본값입니다. 활성화하려면 업로드 만료 후 유예 시간을 명시해야 합니다.🔗 관련 이슈
Closes #205
✅ 체크리스트