Skip to content

Commit

Permalink
test: 낙관적 락 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
jemin committed Dec 27, 2023
1 parent 9583114 commit 942675c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public Long saveGroup(Long userId, CreateGroupRequestDto createGroupRequestDto)
return groupAndUserWriter.save(GroupAndUser.of(user.getId(), savedGroup)).getId();
}

@DistributedLock(key = "#groupId")
// @DistributedLock(key = "#groupId")
@OptimisticLock(retryCount = 3, waitTime = 1000L) // 분산락을 획득한 트랜잭션이 커밋 전에 락을 풀어버리는 상황에 대비
@CacheEvict(cacheNames = CacheNames.GROUP, key = "#groupId")
@Transactional
Expand Down
2 changes: 1 addition & 1 deletion lib
Submodule lib updated from c272f0 to 00e355

0 comments on commit 942675c

Please sign in to comment.