Unexpected exception: /tmp/QuickPerf-7265351587637478002/allocation.ser (No such file or directory)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- performance, testing
Research direction
Reproduce the failure with the Quarkus 3.8.2 demo and the shown GreetingResourceTest. Start at org.quickperf.repository.ObjectInputStreamBuilder and follow the call chain through LongFileRepository, AllocationRepository, and ByteWatcherRecorder. Done means the test runs without the unexpected FileNotFoundException and the reported allocation check still completes.
Written by the indexing model from the issue text.
Description
Hello I've tried a simple quarkus 3.8.2 demo application and got the error:
Stack trace
java.lang.IllegalStateException: java.io.FileNotFoundException: /tmp/QuickPerf-7265351587637478002/allocation.ser (No such file or directory)
at org.quickperf.repository.ObjectInputStreamBuilder.buildFileInputStream(ObjectInputStreamBuilder.java:46)
at org.quickperf.repository.ObjectInputStreamBuilder.buildObjectInputStream(ObjectInputStreamBuilder.java:28)
at org.quickperf.repository.LongFileRepository.retrieveLongValueFromFile(LongFileRepository.java:42)
at org.quickperf.repository.LongFileRepository.find(LongFileRepository.java:37)
at org.quickperf.jvm.allocation.AllocationRepository.findAllocation(AllocationRepository.java:32)
at org.quickperf.jvm.allocation.bytewatcher.ByteWatcherRecorder.findRecord(ByteWatcherRecorder.java:45)
at org.quickperf.jvm.allocation.bytewatcher.ByteWatcherRecorder.findRecord(ByteWatcherRecorder.java:19)
at org.quickperf.issue.PerfIssuesEvaluator.findPerfRecord(PerfIssuesEvaluator.java:91)
at org.quickperf.issue.PerfIssuesEvaluator.buildPerfRecordByAnnotation(PerfIssuesEvaluator.java:81)
at org.quickperf.issue.PerfIssuesEvaluator.evaluatePerfIssuesIfNoJvmIssueWithPotentialUnexpectedException(PerfIssuesEvaluator.java:59)
at org.quickperf.issue.PerfIssuesEvaluator.evaluatePerfIssuesIfNoJvmIssue(PerfIssuesEvaluator.java:38)
at org.quickperf.junit5.QuickPerfTestExtension.processJvmOrTestIssue(QuickPerfTestExtension.java:164)
at org.quickperf.junit5.QuickPerfTestExtension.interceptTestMethod(QuickPerfTestExtension.java:130)
at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
at org.junit.jupi
code
package org.acme;
import io.quarkus.test.junit.QuarkusTest;
import org.junit.jupiter.api.Test;
import org.quickperf.junit5.QuickPerfTest;
import org.quickperf.jvm.allocation.AllocationUnit;
import org.quickperf.jvm.annotations.ExpectMaxHeapAllocation;
import org.quickperf.jvm.annotations.MeasureHeapAllocation;
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;
@QuickPerfTest
@QuarkusTest
class GreetingResourceTest {
@MeasureHeapAllocation
@ExpectMaxHeapAllocation(value = 1, unit = AllocationUnit.GIGA_BYTE)
@Test
void testHelloEndpoint() {
given()
.when().get("/hello")
.then()
.statusCode(200)
.body(is("Hello s e a"));
}
}
- Dominant language
- Java
- Stars
- 541
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quick-perf/quickperf
-
:bug: bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
quick-perf/quickperf#263 · 1 comment ·
-
:sparkles: feature
Difficulty 5/5 Over a week Newbie friendliness 25/100
quick-perf/quickperf#226 · 1 reaction ·
-
:grey_question: question
Difficulty 4/5 3-5 days Newbie friendliness 25/100
quick-perf/quickperf#221 · 2 comments ·
-
:bug: bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
quick-perf/quickperf#219 · 1 comment ·
-
:grey_question: question
Difficulty 4/5 3-5 days Newbie friendliness 35/100
quick-perf/quickperf#214 · 7 comments ·
All issues in quick-perf/quickperf
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-modulith#1895 ·