Skip to content
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

fix: Also catch Neo.ClientError.Schema.ConstraintAlreadyExists while locking. #324

Merged

Conversation

michael-simons
Copy link
Owner

A Neo4jException is thrown with the code Neo.ClientError.Schema.ConstraintAlreadyExists when a constraint already exists that is not only equivalent but has a name.
The same scenario might happen in an upgrade from 4.3 to 4.4. at least, as there the mechanism that decides which constraints are equivalent seems to have changed.

Thanks to @ali-ince for reporting this and help me fixing it.

…e locking.

A `Neo4jException` is thrown with the code `Neo.ClientError.Schema.ConstraintAlreadyExists` when a constraint already exists that is not only equivalent but has a name.
The same scenario might happen in an upgrade from 4.3 to 4.4. at least, as there the mechanism that decides which constraints are equivalent seems to have changed.

Thanks to @ali-ince for reporting this and help me fixing it.
@sonarcloud
Copy link

sonarcloud bot commented Dec 2, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@michael-simons michael-simons merged commit cb2d614 into main Dec 2, 2021
@michael-simons michael-simons deleted the issue/catch-all-codes-indicating-existing-constraint branch December 2, 2021 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant