refactor(word): standardize single-flight on RLock#333
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.
Summary
single-flight 분산락 경로를 Redlock 분기에서 RLock 표준 경로로 단순화하고, 관련 설정/테스트/로컬 도커 구성을 정리했습니다.
Problem
RedissonRedLock경로와 다중 노드 설정이 코드/설정/테스트에 남아 있어 운영 복잡도가 높았습니다.lock-ttl-ms)도 남아 있었습니다.Solution
RLock + watchdog단일 경로로 표준화lockTtlMs필드 및 설정 제거Changes
WordSingleFlightRedisCoordinator: Redlock 분기 제거,createLock()단일화WordSingleFlightProperties:lockTtlMs,redlockEnabled,redlockNodeAddresses제거application*.properties: Redlock/lock-ttl 설정 제거docker-compose.yml:redis-a/b/c및 관련 env/depends_on/volumes 제거Example
검증:
./gradlew test --tests "com.linglevel.api.word.service.WordSingleFlightRedisCoordinatorTest" --tests "com.linglevel.api.word.service.WordSingleFlightRedisCoordinatorIntegrationTest"통과./gradlew bootRun기동 확인Related Issues
없음