-
Bug
-
Resolution: Unresolved
-
Minor
-
None
We've been seeing a StackOverflowError with Test stability enabled and Discard Old Builds:
FATAL: null java.lang.StackOverflowError at hudson.tasks.junit.TestResultAction.load(TestResultAction.java:197) at hudson.tasks.junit.TestResultAction.getResult(TestResultAction.java:143) at hudson.tasks.junit.TestResultAction.getResult(TestResultAction.java:62) at hudson.tasks.test.AbstractTestResultAction.findCorrespondingResult(AbstractTestResultAction.java:247) at hudson.tasks.test.TestResult.getPreviousResult(TestResult.java:142) at hudson.tasks.junit.SuiteResult.getPreviousResult(SuiteResult.java:283) at hudson.tasks.junit.CaseResult.getPreviousResult(CaseResult.java:446) at hudson.tasks.junit.CaseResult.freeze(CaseResult.java:575) at hudson.tasks.junit.SuiteResult.freeze(SuiteResult.java:325) at hudson.tasks.junit.TestResult.freeze(TestResult.java:627) at hudson.tasks.junit.TestResultAction.load(TestResultAction.java:200) at hudson.tasks.junit.TestResultAction.getResult(TestResultAction.java:143) ... repeated ...
Disabling the test stability resolves our issue.
- relates to
-
JENKINS-33168 Junit plugin took 7 hours to complete recording test failures
-
- In Progress
-
-
JENKINS-57882 junit Test Result Age shows next build number
-
- Resolved
-
- links to
If I recall correctly, we had a very similar stack trace attempting to view the test results. After disabling test stability on the job though, this has recovered.
We're disabled the plugin for affected jobs, but if it starts happening in other jobs I will experiment with this. Is there a way to get an indication of what I should set this to? Is there a way for the plugin to detect this scenario and make the -Xss suggestion to the user?