Merged
Conversation
- content에서 시청자수가 1->0으로 변경되는 순간 레디스의 Zset의 멤버가 0 이 되면서 레디스가 해당 Zset를 삭제하는데 동기화 로직에서 Zset에 있는 멤버만 동기화를 시도해서 1 -> 0으로 동기화되지 못하고 1로 남는 버그가 발생 -> 동기화를 할 때 실제 활성화된 콘텐츠의 시청자를 모두 동기화 하도록 변경 - 기존 redis Zset 의존 -> ES에서 시청자수가 0 이상인 콘텐츠에서 Redis 키가 없으면 0으로 초기화
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.
PR 요약
체크리스트
상세 설명
content에서 시청자수가 1->0으로 변경되는 순간 레디스의 Zset의 멤버가 0 이 되면서 레디스가 해당 Zset를 삭제하는데 동기화 로직에서 Zset에 있는 멤버만 동기화를 시도해서 1 -> 0으로 동기화되지 못하고 1로 남는 버그가 발생 -> 동기화를 할 때 실제 활성화된 콘텐츠의 시청자를 모두 동기화 하도록 변경
기존 redis Zset 의존 -> ES에서 시청자수가 0 이상인 콘텐츠에서 Redis 키가 없으면 0으로 초기화
검증 단계
로컬 테스트
추가 코멘트