馃悰 [Bug] Neo4j error on production cluster
Created by: Tirokk
Authored by mattwr18 Closed
馃悰 Bugreport
we are getting this error at least 3 times a day on our production cluster for the last week.
ERROR Unable to schedule bolt session 'bolt-264322' for execution since there are no available threads to serve it at the moment. You can retry at a later time or consider increasing max thread pool size for bolt connector(s).
I have found this open issue, which could be related https://github.com/neo4j/neo4j/issues/12014
It suggests that we should double check our code base for open session.run
, with no closing session.close
, and also says "If you're using transaction functions (i.e. Session.ReadTransaction and Session.WriteTransaction) you're mostly safe"
Short term, we could go through the code base and make sure all session
s are closed - I have seen three or more that don't seem to be.
We could also open a refactoring ticket after to use `read/writeTransaction.