Merged
Conversation
4 tasks
leegaarden
approved these changes
Jan 20, 2026
Member
leegaarden
left a comment
There was a problem hiding this comment.
컨트롤러단 간결해진 부분 좋습니다. 수고 많으셨습니다!
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.
🚀 관련 이슈
🔑 주요 변경사항
1. 비관적 락(Pessimistic Lock) 적용
NoteRepository.java
PESSIMISTIC_WRITE락을 사용하여 노트 조회 시점부터 트랜잭션 종료까지 해당 레코드에 대한 배타적 잠금 획득2. 버전 관리 필드 추가
Note.java (Entity)
version필드를 추가하여 각 수정마다 버전 번호 증가3. 버전 검증 로직 추가
NoteService.java
INCORRECT_VERSION(2015)에러 반환4. Facade 서비스 도입
NoteFacadeService.java (신규 생성)
5. API 요청 스펙 변경
NoteRequest.java
version값을 포함해야 함(노트 내용 조회 api에서 수집 가능)✔️ 체크 리스트
mainbranch에 실수로 PR 생성 금지)Controller나Service에서log.error활용)📔 참고 자료
이슈 #277 수정 과정 참고