-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
⚠️invalidThis doesn't seem rightThis doesn't seem right🔥 bugSomething isn't workingSomething isn't working
Description
테스트 실행 시 몽고디비만 rollback되지 않는 문제점 발견
어떤 버그인가요?
버그에 대해 알려주세요.
테스트코드 실행 시 MongoDB만 @transactional 롤백이 적용되지 않는 문제점을 발견함
어떤 상황에서 겪으셨나요?
버그를 겪으신 상황을 알려주세요.
ex) 재현 방법
- TestScenario1을 실행시킬 것이다
- StudentLectureQueryRepository의 updateStudentLectureByFinishLecture에 가서 lectureDurationMinutes = 60; 주석을 푼다
- TestScenario1을 실행시킨다
- mysql은 롤백이 잘 되기 때문에 반복 실행이 가능한 걸 확인할 수 있지만, 몽고디비 값은 롤백되지 않기 때문에 중복데이터가 겹겹이 쌓이는 걸 볼 수 있다.
어떤 결과를 예상하셨나요?
예상 했던 결과를 알려주세요.
몽고디비도 rollback 되어 반복 테스트를 할 때 같은 결과가 나오길 기대했따.
참고할만한 자료가 있을까요?
참고자료가 있다면 첨부해주세요. 👍
이유를 계속 찾아나갈 예정입니다.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
⚠️invalidThis doesn't seem rightThis doesn't seem right🔥 bugSomething isn't workingSomething isn't working
