Skip to content

Commit fd87ea7

Browse files
authored
Add GQLSTATUS code to Neo. code (#2008) (#2032)
Cherry-picked from #2008
1 parent 2b90f41 commit fd87ea7

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

modules/ROOT/pages/authentication-authorization/database-administration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Use `REVOKE` if you want to remove a privilege.
180180

181181
Common errors, such as misspellings or attempts to revoke privileges that have not been granted or denied, will lead to notifications.
182182
Some of these notifications may be replaced with errors in a future major version of Neo4j.
183-
See link:{neo4j-docs-base-uri}/status-codes/{page-version}/notifications/all-notifications[Status Codes -> Notification codes] for details on notifications.
183+
See link:{neo4j-docs-base-uri}/status-codes/{page-version}/notifications/all-notifications[Status Codes for Errors & Notifications -> Server notifications] for details on notifications.
184184

185185
The hierarchy between the different database privileges is shown in the image below.
186186

modules/ROOT/pages/database-administration/aliases/manage-aliases-composite-databases.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ CREATE ALIAS yard FOR DATABASE garden
120120
Failed to create the specified database alias 'yard': Database 'garden' is composite.
121121
----
122122

123+
From 5.26 onwards, the error message also contains the GQLSTATUS code `42NA6` and the status description `error: syntax error or access rule violation - invalid alias target. Aliases are not allowed to target composite databases.`
124+
123125
== Alter local and remote database aliases in composite databases
124126

125127
Local and remote database aliases belonging to a composite database can be altered using the `ALTER ALIAS` command.
@@ -354,6 +356,8 @@ DROP ALIAS $aliasname FOR DATABASE
354356
Failed to delete the specified database alias 'foo.bar': Database alias does not exist.
355357
----
356358

359+
//From 5.26 onwards, the error message also contains the GQLSTATUS code `50N00` and the status description `error: general processing exception - internal error. Internal exception raised { $msgTitle }: Failed to create the specified database alias 'foo.bar'. Database alias does not exist.`
360+
357361
Had the composite database `foo` not existed, the database alias `foo.bar` would have been dropped.
358362

359363
In these cases, it is recommended to avoid parameters and explicitly quote the composite database name and alias name separately to avoid ambiguity.

modules/ROOT/pages/database-internals/concurrent-data-access.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ Since locks are used, deadlocks can happen.
295295
A deadlock occurs when two transactions are blocked by each other because they are attempting to concurrently modify a node or a relationship that is locked by the other transaction.
296296
In such a scenario, neither of the transactions will be able to proceed.
297297
When Neo4j detects a deadlock, the transaction is terminated with the transient error message code `Neo.TransientError.Transaction.DeadlockDetected`.
298+
From 5.25 onwards, the error message also contains the GQLSTATUS code `50N05` and the status description `error: general processing exception - deadlock detected. Deadlock detected while trying to acquire locks. See log for more details.`
298299

299300
All locks acquired by the transaction are still held but will be released when the transaction finishes.
300301
Once the locks are released, other transactions that were waiting for locks held by the transaction causing the deadlock can proceed.

0 commit comments

Comments
 (0)