liquibase / liquibase-neo4j

Neo4j extension for Liquibase
Apache License 2.0
49 stars 11 forks source link

Update hanging with neo4j 5 #282

Closed borgoat closed 1 year ago

borgoat commented 1 year ago

I've been unsuccessfully trying to run the quick start example from the docs on Neo4j 5 enterprise; both via Aura DB and locally with Docker (linux/arm64).

While this works on 4.4.14, on 5.1.0 it merely hangs.

I'm using the latest version of liquibase (4.17.2) and liquibase-neo4j: https://github.com/liquibase/liquibase-neo4j/releases/tag/liquibase-neo4j-4.17.2 and looking at #277 it seems initial support for v5 was implemented... not sure if I'm doing something wrong though. I'm not particularly familiar with neither Liquibase nor Neo4j. 🤷

As an additional data point, I'm running liquibase from macOS 13, arm64, JDK 18.

Here is the configuration and debug logs for the 2 cases: https://gist.github.com/borgoat/07fe03a31fb48f7736d234e3a688fa33

I did test on the community edition too - but because the result is identical I did not add it to the logs.

fbiville commented 1 year ago

EDIT: this answer is now outdated

Hello, apologies for the late reply. The underlying JDBC connector is not ready yet for v5, a release for Neo4j 5 support will land soon.

fbiville commented 1 year ago

EDIT: this answer is now outdated

In the mean time, you can try building the neo4j-jdbc-bolt JAR from sources and see if that works for you:

git clone https://github.com/neo4j-contrib/neo4j-jdbc.git
mvn install --file neo4j-jdbc/pom.xml --also-make --projects neo4j-jdbc-bolt -DskipTests

Then add to your POM:

<dependency>
        <groupId>org.neo4j</groupId>
        <artifactId>neo4j-jdbc-bolt</artifactId>
        <version>5.1.0</version>
</dependency>

Once you're done, do not forget to remove the dependency from your local cache (rm -r ~/.m2/repository/org/neo4j/neo4j-jdbc-bolt/5.1.0)

fbiville commented 1 year ago

Alternatively @borgoat, can you try https://github.com/liquibase/liquibase-neo4j/releases/tag/liquibase-neo4j-jdbc-alpha-01 and report back?

fbiville commented 1 year ago

Hello @borgoat, can you try Liquibase Neo4j 4.19.0 and report back? This includes the new JDBC implementation and should fix all your issues.

borgoat commented 1 year ago

Thanks @fbiville - haven't had much time to look into it lately, I'll give it a shot in the coming days though!

fbiville commented 1 year ago

Hello @borgoat, have you had a chance to try out Liquibase Neo4j 4.19 (or later)?

fbiville commented 1 year ago

Liquibase has been supporting Neo4j 5 for a while, please reopen the issue if the problem still occurs @borgoat.