neo4j / neo4j-javascript-driver

Neo4j Bolt driver for JavaScript
https://neo4j.com/docs/javascript-manual/current/
Apache License 2.0
854 stars 148 forks source link

Java 11 needs to be installed to run the tests #529

Closed jharris4 closed 2 years ago

jharris4 commented 4 years ago

After installed boltkit, I ran into a couple of issues trying to run the tests...

First of all, when running npm run start-neo4j to test that the tests would be able to start the server, I got an error saying that "Java 11 could not be found" even though I have Java 13 installed. Installing a version 11 JDK did solve that issue.

Another small issue I had to fix to get the tests running locally was to change const defaultNeo4jVersion = '4.0' in shared-neo4j.js to be 4.0.0 instead of 4.0.

I've opened this issue as a reminder that it might be good to mention the above in the README somewhere...

Guidelines

Firstly, if you are an Enterprise customer, you might want to head over to our Customer Support Portal.

If you think you might have hit a bug in our software (it happens occasionally!) or you have specific feature request then use the issue feature on the relevant GitHub repository. Check first though as someone else may have already raised something similar.

If you simply want to get started or have a question on how to use a particular feature, ask a question in Neo4j Online Community instead. StackOverflow also hosts a ton of questions and might already have a discussion around your problem. Make sure you have a look there too.

If you want to make a feature request, please prefix your issue title with [Feature Request] so that it is clear to us. If you have a bug report however, please continue reading.
To help us understand your issue, please specify important details, primarily:

Additionally, include (as appropriate) log-files, stacktraces, and other debug output. Always check the server logs to see if there is any stacktrace related to the driver error too. Aslo add any solutions you've tried to solve the problem yourself.

Example bug report

I got connection reset by peer errors.

Neo4j Version: 3.4.10 Community
Neo4j Mode: Single instance
Driver version: JS driver 1.7.1
Operating System: Ubuntu 16.10 on AWS

Steps to reproduce

  1. Start Neo4j on a AWS instance
  2. Run a query with the driver
  3. Put the driver idle for 2h
  4. Run another query

Expected behavior

The second query shall run successfully

Actual behavior

The client failed to run the second query with a connection reset by peer stacktrace.
attach the stacktrace
Meanwhile, in the server log, I found this stacktrace that happened at the same time when the driver failed.
attach the stacktrace

bigmontz commented 2 years ago

Tests were moved the testkit and readme was updated accordingly.