fix: 음수 Redis 재고 상태에서 보정 연기#228
Merged
Merged
Conversation
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.
🚀 작업 개요
Redis 선착순 필터의
DECR -> INCR rollback구간과 보정 스케줄러의setStock()이 충돌하지 않도록 Redis 재고가 음수인 경우 보정을 연기하도록 수정했습니다.🛠️ 작업 내용
음수 Redis 재고 보정 차단
lesson:stock:{lessonId}값을 확인✅ PR 유형
✅ Check List
🔗 관련 이슈
#221
💬 기타 참고 사항
DECR후 음수면INCR로 롤백setStock(0)을 수행하면, 이후 남은 rollbackINCR이 stock을 양수로 열어 초과 신청을 허용하는 상황 발생