arne-bdt opened a new pull request, #2792:
URL: https://github.com/apache/jena/pull/2792
If the setup in `JenaSystem.init()` takes longer than 5 seconds, a detailed
error message is logged to `System.err` indicating a potential deadlock
situation:
> Timeout while waiting for `JenaSystem.init()`, possibly due to a deadlock
while waiting on the class initialization monitor. Please ensure that
`JenaSystem.init()` is called before working with multiple threads.
While this is not a definitive solution, it should provide users with
helpful guidance if they encounter this issue.
Otherwise, the deadlock could cause significant time loss for many users due
to its obscure nature and difficulty in debugging.
Additionally, I have added integration tests for `JenaSystem.init()`,
including the parallel execution scenario from the issue, to ensure coverage of
potential concurrency issues.
GitHub issue resolved #2787
I'm unsure about this PR, but it's currently the next best approach, I can
think of.
----
- [x] Tests are included.
- [x] Commits have been squashed to remove intermediate development commit
messages.
- [x] Key commit messages start with the issue number (GH-xxxx)
By submitting this pull request, I acknowledge that I am making a
contribution to the Apache Software Foundation under the terms and conditions
of the [Contributor's
Agreement](https://www.apache.org/licenses/contributor-agreements.html).
----
See the [Apache Jena "Contributing"
guide](https://github.com/apache/jena/blob/main/CONTRIBUTING.md).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]