fix: Redis room key namespace 분리로 WRONGTYPE 오류 해결#107
Merged
jung-min-ju merged 1 commit intodevelopfrom Nov 16, 2025
Merged
Conversation
brothergiven
approved these changes
Nov 16, 2025
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 room key namespace 분리로 WRONGTYPE 오류 해결
📝 개요
현재 /api/v1/room get 매핑 시, 서버 에러 500이 발생됨.
⚙️ 구현 내용
Redis 키 네임스페이스 충돌 문제 해결
두 키가 모두 room:* 패턴에 포함되어 SCAN 후 HGETALL 수행 시 Set 타입에서 WRONGTYPE 발생
set 타입은 HGETALL 이 아닌 SMEMBERS 명령어로 조회해야 하기에, 레디스 내에서 명령어 불일치 에러가 발생되었음!
<해당 조회 코드>
방 메타데이터 키를 아래와 같이 변경
🧪 테스트 결과