Closed haxr369 closed 5 months ago
Attention: Patch coverage is 90.47619%
with 2 lines
in your changes are missing coverage. Please review.
Project coverage is 82.75%. Comparing base (
ed4626c
) to head (d7e8a86
).
Files | Patch % | Lines |
---|---|---|
.../concurrency/counter/CompletableFutureCounter.java | 81.81% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Describe the bug
totalCount
를 Integer.MAX_VALUE로 하면 Out Of Memory가 뜨는 문제가 발생합니다.Caused by: java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.concurrent.AbstractExecutorService.newTaskFor(AbstractExecutorService.java:98)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:122)
at com.thread.concurrency.AtomicCounterTest.여러_더하기_수행_Executor(AtomicCounterTest.java:37)
at java.base/java.lang.invoke.LambdaForm$DMH/0x000000a000288800.invokeVirtual(LambdaForm$DMH)
at java.base/java.lang.invoke.LambdaForm$MH/0x000000a000190800.invoke(LambdaForm$MH)
at java.base/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
To Reproduce Steps to reproduce the behavior:
src/test/java/com/thread/concurrency/AtomicCounterTest.java
totalCount
를 Integer.MAX_VALUE로 변경Expected behavior A clear and concise description of what you expected to happen.
문제는 별도 이슈로 분리했어요
개요
변경 사항
✨ Feat : 새로운 기 ✅ Test : 테스트 코드 추가
추가 정보
관련 이슈