-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apoc.import.graphml works from JUnit but hangs in the application #695
Comments
Btw, this actually reminded me of an issue from 2015, that required me to turn off the reference clearing queue for EMF models as it made JDK8 hang during execution. Details are at ftsrg/trainbenchmark-ttc#7. Not sure about whether it's applicable here. |
Is that run method also inside a thread?
|
@jexp No, it's a single threaded application, and |
Can you get a full thread dump when it hangs? AFAIK the graphml export does nothing special not even multi-threading. |
Sure:
|
I'm missing main() somehow. |
It is missing. |
Can you do just jstack ? (or the "camera" icon in IDEA. |
I added a Travis build for my project. This demonstrates the issue:
|
Seems to be related to pool shutdown. I.e. the pool-3-thread-1, which is not a daemon thread. I add an explicit pool shutdown on JVM shutdown. Usually Neo4j-server would just exit. |
Fixed manually. |
I came across this issue again. I updated the example repo (https://github.com/szarnyasg/neo4j-apoc-shutdown/commit/ddcbc8f254b5d46490cba52ddf6558d572a82e89) to include the fix by @jexp (d6fd3c0), but it made no difference. It still doesn't terminate if it is run from Another issue I found is that
https://travis-ci.org/szarnyasg/neo4j-apoc-shutdown/builds/584114536#L529 |
We discovered an interesting issue with @marci543 about
apoc.import.graphml
. Load always works, but:main
method.We use the latest version of everything (Neo4j 3.3.1 and APOC 3.3.0.1), with the following code:
We tried various workarounds:
t
or notYIELD ... RETURN
or notHowever, they made no difference. We also tried to suspend execution with the debugger, but all our code was already executed:
To allow reproducibility, I fired up a repo with an example project @ https://github.com/szarnyasg/neo4j-apoc-shutdown. I am using the latest IntelliJ IDEA.
The text was updated successfully, but these errors were encountered: