[ 
https://issues.apache.org/jira/browse/JAMES-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16212343#comment-16212343
 ] 

Matthieu Baechler commented on JAMES-2196:
------------------------------------------

The right fix is probably to implement CompletableFutureUtil.allOf in a way 
that doesn't blow the stack.

> Fix CompletableFutureUtilTest
> -----------------------------
>
>                 Key: JAMES-2196
>                 URL: https://issues.apache.org/jira/browse/JAMES-2196
>             Project: James Server
>          Issue Type: Bug
>            Reporter: Luc DUZAN
>
> Some contributors get some error when running CompletableFutureUtilTest. For 
> example:
> ```
> INFO] Running org.apache.james.util.CompletableFutureUtilTest
> [ERROR] Tests run: 25, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
> 45.033 s <<< FAILURE! - in org.apache.james.util.CompletableFutureUtilTest
> [ERROR] 
> allOfShouldWorkOnVeryLargeStream(org.apache.james.util.CompletableFutureUtilTest)
>  Time elapsed: 44.637 s <<< ERROR!
> java.util.concurrent.CompletionException: java.lang.StackOverflowError
> at 
> org.apache.james.util.CompletableFutureUtilTest.allOfShouldWorkOnVeryLargeStream(CompletableFutureUtilTest.java:228)
> Caused by: java.lang.StackOverflowError
> ```
> I guess it's du to the fact that the stack maximum size can vary depending on 
> the platform or that if you have a fast CPU or not you stack size grow 
> differently.
> Anyway we should make those test less aggressive so it work on everybody 
> computer. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to