Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Process gets into infinite loop if neo4j goes away #27

Open
cebe opened this issue Dec 23, 2017 · 1 comment
Open

Process gets into infinite loop if neo4j goes away #27

cebe opened this issue Dec 23, 2017 · 1 comment

Comments

@cebe
Copy link

cebe commented Dec 23, 2017

When neo4j becomes unavailable while running a query, the connecting process does not terminate with an exception but stays in an infinite loop, utilizing 100% CPU:

bildschirmfoto von 2017-12-23 01-05-52

Simple steps to reproduce:

  1. Write a script that runs neo4j queries in a loop, add some output after each query is finished.
  2. While it is running, stop neo4j. The script will stop outputting anything and stay at 100% CPU waiting for something.

Starting neo4j again does not change anything, the script will still be in this state.
Got this reproduced on production server and also on my local dev machine.

@cebe
Copy link
Author

cebe commented Mar 11, 2018

@ikwattro any idea on how to fix this? This has quite some impact on production systems when running background jobs that have no time constraints.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant