neo4j/neo4j-java-driver

Fatal error occurred in the pipeline

destinccc opened this issue · 1 comments

neo4j-java-driver 4.2.7
sometimes still throw this exception:Fatal error occurred in the pipeline, xxx Connection reset by peer;
myconfig is:
Config config = Config.builder()
.withMaxConnectionLifetime(30, TimeUnit.MINUTES)
.withConnectionLivenessCheckTimeout(0, TimeUnit.SECONDS)
.withMaxConnectionPoolSize(-1)
.withConnectionAcquisitionTimeout(2, TimeUnit.MINUTES)
.withTrustStrategy(Config.TrustStrategy.trustAllCertificates())
.withoutEncryption()
.build();
return GraphDatabase.driver(uri, AuthTokens.basic(username, password), config);

Help me.

Hello.

Based on the description, it looks like connection gets aborted.

The following is suggested:

  • investigating why it might happen in the specific environment
  • using managed transactions API to benefit from automatic retries

We hope it helps.