You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2022/06/14 17:21:00 UTC
[jira] [Commented] (DAFFODIL-2704) sbt tests are intermittenly hanging
[ https://issues.apache.org/jira/browse/DAFFODIL-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17554209#comment-17554209 ]
Steve Lawrence commented on DAFFODIL-2704:
------------------------------------------
Via printf debugging, it looks like this is hanging on iter.next() inside our SimpleNamedServiceLoader.loadClass function–it simply never returns even though iter.hasNext() returns true. Might be a bug in Java??
> sbt tests are intermittenly hanging
> -----------------------------------
>
> Key: DAFFODIL-2704
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2704
> Project: Daffodil
> Issue Type: Bug
> Reporter: Steve Lawrence
> Priority: Critical
> Fix For: 3.4.0
>
>
> Starting at commit c81b213b02ac414a39290787cf2eea14d83fdc26, running \{sbt daffodil-io/test} multiple times will eventually cause it to hang.
> It's not clear to me the cause, but I've confirmed that the hang happens somewhere in the SimpleNamedServiceLoader loadClass function. Seems likely that it's getting stuck in the while loop and can't break out for some reason.
> I don't think the above commit caused the issue, but it did a new call to SimpleNamedServiceLoader, and it loads a lot more classes than the usual use of this class. We're probably using service loaders incorrectly in this function somehow.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)