Conversation
|
Caution Review failedThe pull request is closed. Walkthrough
Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant Controller
participant Service
participant GlobalExceptionHandler as ExceptionHandler
Client->>Controller: 요청
Controller->>Service: 비즈니스 로직 수행
Service-->>Controller: ReservationDataInconsistencyException throw
note over Controller,ExceptionHandler: 예외 전파
Controller->>ExceptionHandler: handle(ReservationDataInconsistencyException)
rect rgba(230,240,255,0.6)
ExceptionHandler->>ExceptionHandler: 알람 트리거 및 로깅
end
ExceptionHandler-->>Client: 404 NOT_FOUND + ErrorResponse(RESERVATION_DATA_INCONSISTENCY)
sequenceDiagram
autonumber
participant Service
participant WaitingRedisRepository as RedisRepo
participant Redis as Redis(HSET/HDEL)
Service->>RedisRepo: deleteWaiting(userId, reservationNumber)
par 키 정리
RedisRepo->>Redis: HDEL numberMapKey userId
RedisRepo->>Redis: HDEL statusKey userId
RedisRepo->>Redis: ZREM queueKey userId
RedisRepo->>Redis: HDEL partySizeKey userId
RedisRepo->>Redis: HDEL calledAtKey userId
and 역매핑 정리 (변경)
note over RedisRepo,Redis: 이전: reservationNumber != null일 때만 HDEL<br/>현재: 항상 HDEL 호출
RedisRepo->>Redis: HDEL userMapKey reservationNumber
end
Redis-->>RedisRepo: OK
RedisRepo-->>Service: 완료
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
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.
작업 요약
Issue Link
#319
문제점 및 어려움
해결 방안
Reference
Summary by CodeRabbit