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
NotALeaderError in write_transaction() #276
Comments
I'm not sure how easy this'll be to recreate just from the information we have here. But it sounds to me like the routing table has invalid data or isn't being updated correctly. Getting extra logs from the client would help. You'll need to hook into the logger called "neobolt" to see the conversation between client and server. There's a built-in helper to dump this to stdout, which you might be able to capture. These two lines just need to go at the top of the application:
After that, we should have a much clearer idea what is (or isn't) happening. |
Thanks for your fast reply. We're capturing the neobolt logs since yesterday but the error didn't occur, yet. I will comment again when it recurs. |
We now have a log file that captured the error, starting from the last successful commit. Do you need the queries we run? If yes, can I send the file to you directly? I don't want to publish them here. |
Yes, please drop me an email: nigel at neo4j dot com. |
Ok, I've sent you an email with the issue title in subject. |
Thanks, received. I'll have a look over the next couple of days. |
Any progress on this? |
We're still getting that error.. |
@P1zz4br0etch3n Can you confirm that you are using |
Yes, we are definitely using |
Will be fixed in the 1.7.2 patch that contains #283 (as well as equivalent patches for 1.5 and 1.6). Due for release on Thursday 7th March 2019. |
I got NotALeaderError in write_transaction() when running an application with neo4j-driver for about 1 day on average. This happens almost every day since it is runnning 24/7. The app runs a transaction every 5 minutes if necessary. After the first error is thrown no more transactions will succeed until application restart.
This might be related: neo4j-contrib/neomodel#335
Neo4j Version: 3.4.9 Enterprise
Neo4j Mode: Causal cluster with 3 core
Driver version: Python driver 1.7.1
Operating System: Docker base image python:2.7-slim
Packaging Tool: Pipenv
Steps to reproduce
Expected behavior
The application keeps being able to run write_transaction() on Neo4j cluster
Actual behavior
After running for about 1 day the application stops being able to write.
Traceback (modified to hide function/application names):
The text was updated successfully, but these errors were encountered: