Skip to content

[DEBUG] 모임 삭제 시 채팅방/GCS/Redis 정리 보장 개선#596

Merged
Dimo-2562 merged 16 commits into
developfrom
debug/#595
Jun 3, 2026
Merged

[DEBUG] 모임 삭제 시 채팅방/GCS/Redis 정리 보장 개선#596
Dimo-2562 merged 16 commits into
developfrom
debug/#595

Conversation

@Dimo-2562
Copy link
Copy Markdown
Contributor

@Dimo-2562 Dimo-2562 commented May 27, 2026

❤️ 기능 설명

모임 삭제 시 모임 채팅방과 외부 리소스 정리 보장을 강화했습니다.

  • 모임 삭제 이벤트를 통해 모임 채팅방 데이터를 정리합니다.
  • 채팅 파일 object key를 Object Storage 삭제 outbox에 저장합니다.
  • GCS 삭제 processor/scheduler를 추가해 실패 시 재시도할 수 있게 했습니다.
  • Redis 구독/채팅 목록 구독/마지막 메시지 캐시는 DB 커밋 이후 best-effort 이벤트로 정리합니다.
  • Outbox scheduler 동시 실행에 대비해 DB claim 상태(PROCESSING, claim_token)를 추가했습니다.
  • 관련 단위 테스트와 통합 테스트를 추가/보강했습니다.

swagger 테스트 성공 결과 스크린샷 첨부

  • 내부 삭제 보장/정합성 개선 작업이라 Swagger 스크린샷은 첨부하지 않았고, 아래 Gradle 테스트 결과로 검증했습니다.

연결된 issue

close #595



🩷 Approve 하기 전 확인해주세요!

  • GCS 삭제는 exactly-once가 아니라 outbox row claim 기반 at-least-once 재시도 + idempotent delete 전제로 처리합니다.
  • Redis 정리는 TTL이 있으므로 outbox/retry 없이 after-commit best-effort로 처리합니다.
  • object_storage_delete_outboxstatus, retry_count, last_error, last_attempted_at, claim_token 관련 마이그레이션이 추가됩니다.

✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 테스트 결과 사진을 넣었는가? (사진 대신 로컬 테스트 명령/결과 기재)
  • 이슈넘버를 적었는가?

🧪 테스트

bash ./gradlew test

결과: BUILD SUCCESSFUL in 4m 59s

@Dimo-2562 Dimo-2562 self-assigned this May 27, 2026
@Dimo-2562 Dimo-2562 requested review from dbalsk and kanghana1 May 27, 2026 06:25
Copy link
Copy Markdown
Contributor

@kanghana1 kanghana1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@Dimo-2562 Dimo-2562 merged commit 486d7d0 into develop Jun 3, 2026
1 check passed
@Dimo-2562 Dimo-2562 deleted the debug/#595 branch June 3, 2026 09:01
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.

[DEBUG] 모임 삭제 시 모임 채팅방이 사라지지 않는 버그 수정

2 participants