fix: ReactiveException으로 감싸진 InterruptedException 발생 시 인터럽트 플래그 복원 및 로그 레벨 WARN으로 변경#44
Draft
Jeongho0805 wants to merge 1 commit into
Draft
fix: ReactiveException으로 감싸진 InterruptedException 발생 시 인터럽트 플래그 복원 및 로그 레벨 WARN으로 변경#44Jeongho0805 wants to merge 1 commit into
Jeongho0805 wants to merge 1 commit into
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.
변경 사항
ProfanityValidator.validateProfanityText의 catch 블록에서ReactiveException의 원인이InterruptedException인 경우를 별도 처리Thread.currentThread().interrupt()로 플래그 복원배경
ProfanityValidator에서 WebClient ReactiveMono에.block()을 호출 중 요청 스레드가 인터럽트되면, Reactor가Exceptions$ReactiveException으로InterruptedException을 감싸 던진다. 기존 catch 블록은 이를 잡아log.error()로 기록했지만 인터럽트 플래그를 복원하지 않고 Sentry가 ERROR 로그를 오류로 수집하는 문제가 있었다. Sentry 이슈 PRACTICKET-5Z (https://practicket.sentry.io/issues/7586704491/)에서POST /api/chat호출 중Exceptions$ReactiveException: java.lang.InterruptedException이 반복 발생함이 확인되었다.