Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

주문 시, 구매입찰/판매입찰 조회에 대한 PESSIMISTIC_WRITE 락 걸기 #233

Merged
merged 21 commits into from
Feb 7, 2024

Conversation

vanillacake369
Copy link
Collaborator

@vanillacake369 vanillacake369 commented Feb 4, 2024

개요

주문 시, 구매입찰/판매입찰 조회에 대하여 Exclusive Lock을 겁니다. 이를 위해 QueryDsl 내에 PESSIMISTIC_WRITE 을 사용하였습니다.

작업사항

  • SellNowRequestDto에 @builder 추가
  • BuyRepositoryCustomImpl 가장 먼저 생성된 구매입찰 조회 시, PESSIMISTIC_WRITE
  • SellRepositoryCustomImpl 가장 나중에 생성된 판매입찰 조회 시, PESSIMISTIC_WRITE

관련 이슈

@vanillacake369 vanillacake369 self-assigned this Feb 4, 2024
@vanillacake369 vanillacake369 added the bug Something isn't working label Feb 4, 2024
Copy link

github-actions bot commented Feb 4, 2024

Test Results

86 tests   72 ✅  4s ⏱️
41 suites  14 💤
41 files     0 ❌

Results for commit f80b53a.

♻️ This comment has been updated with latest results.

@vanillacake369 vanillacake369 marked this pull request as ready for review February 4, 2024 15:49
yunjae62
yunjae62 previously approved these changes Feb 4, 2024
Copy link
Member

@yunjae62 yunjae62 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다.

Copy link
Member

@yunjae62 yunjae62 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@yunjae62 yunjae62 merged commit d24bd91 into main Feb 7, 2024
2 checks passed
@yunjae62 yunjae62 deleted the fix/deadlock-when-create-buybid branch February 7, 2024 06:45
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
None yet
Development

Successfully merging this pull request may close these issues.

주문 시, 구매입찰/판매입찰 조회에 대한 PESSIMISTIC_WRITE 락
2 participants