apache / apache/maven-surefire
After test finishes, maven-surefire-plugin hangs in LineConsumerThread
- Dominant language
- Java
- Stars
- 461
- Forks
- 588
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 19
Description
### Affected version
3.5.5
### Bug description
After test finishes, maven-surefire-plugin hangs in LineConsumerThread
surefire runs as part of a Jenkins build, the hanging process is
jenkins 2263469 2212482 0 10:33 ? 00:00:32 /appl/java/jdk-21.0.10-x86-64/bin/java -javaagent:/jenkins/jenkins/.../.repository/org/mockito/mockito-core/5.18.0/mockito-core-5.18.0.jar -Xshare:off -jar /jenkins/jenkins/.../target/surefire/surefirebooter-20260403102932249_415.jar /jenkins/jenkins/.../target/surefire 2026-04-03T09-48-59_733-jvmRun1 surefire-20260403102932249_413tmp surefire_36-20260403102932249_414tmp
Attached is the stack dump.
[2212482.jstack.txt](https://github.com/user-attachments/files/26459412/2212482.jstack.txt)
Contributor guide
Research direction
Start with the attached jstack dump and the LineConsumerThread mentioned in the report, then reproduce the hang in the Jenkins Maven build described. The work is done when the surefire process exits after tests finish without remaining blocked in LineConsumerThread.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100