Skip to content

[Content] 콘텐츠 조회 시 시청자수 동기화 버그 수정#127

Merged
jeonggiju merged 1 commit intodevfrom
fix/content-watchercount-sync-stale-cleanup#126
Jan 29, 2026
Merged

[Content] 콘텐츠 조회 시 시청자수 동기화 버그 수정#127
jeonggiju merged 1 commit intodevfrom
fix/content-watchercount-sync-stale-cleanup#126

Conversation

@userjin2123
Copy link
Copy Markdown
Contributor

PR 요약

체크리스트

상세 설명

  • content에서 시청자수가 1->0으로 변경되는 순간 레디스의 Zset의 멤버가 0 이 되면서 레디스가 해당 Zset를 삭제하는데 동기화 로직에서 Zset에 있는 멤버만 동기화를 시도해서 1 -> 0으로 동기화되지 못하고 1로 남는 버그가 발생 -> 동기화를 할 때 실제 활성화된 콘텐츠의 시청자를 모두 동기화 하도록 변경

  • 기존 redis Zset 의존 -> ES에서 시청자수가 0 이상인 콘텐츠에서 Redis 키가 없으면 0으로 초기화

검증 단계

로컬 테스트

추가 코멘트

- content에서 시청자수가 1->0으로 변경되는 순간 레디스의 Zset의 멤버가 0 이 되면서 레디스가 해당 Zset를 삭제하는데 동기화 로직에서 Zset에 있는 멤버만 동기화를 시도해서 1 -> 0으로 동기화되지 못하고 1로 남는 버그가 발생 -> 동기화를 할 때 실제 활성화된 콘텐츠의 시청자를 모두 동기화 하도록 변경

- 기존 redis Zset 의존 -> ES에서 시청자수가 0 이상인 콘텐츠에서 Redis 키가 없으면 0으로 초기화
@userjin2123 userjin2123 self-assigned this Jan 28, 2026
@userjin2123 userjin2123 added the bug Something isn't working label Jan 28, 2026
@github-project-automation github-project-automation bot moved this to Todo in mopl-sb5 Jan 28, 2026
@userjin2123 userjin2123 linked an issue Jan 28, 2026 that may be closed by this pull request
1 task
@userjin2123 userjin2123 changed the base branch from main to dev January 28, 2026 08:25
@jeonggiju jeonggiju merged commit 1531f02 into dev Jan 29, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Todo to Done in mopl-sb5 Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Content] 시청자 수 동기화 버그 수정

2 participants