Skip to content

Commit eb8975a

Browse files
committed
update the format of the GQLSTATUS codes
1 parent 6848df5 commit eb8975a

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ CREATE ALIAS yard FOR DATABASE garden
118118
[source, output, role="noheader"]
119119
----
120120
Failed to create the specified database alias 'yard': Database 'garden' is composite.
121-
122-
42NA6, error: syntax error or access rule violation - invalid alias target. Aliases are not allowed to target composite databases.
123121
----
124122

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+
125125
== Alter local and remote database aliases in composite databases
126126

127127
Local and remote database aliases belonging to a composite database can be altered using the `ALTER ALIAS` command.
@@ -355,8 +355,8 @@ DROP ALIAS $aliasname FOR DATABASE
355355
----
356356
Failed to delete the specified database alias 'foo.bar': Database alias does not exist.
357357
----
358-
//"GQLSTATUS": "50N00",
359-
// "statusDescription": "error: general processing exception - internal error. Internal exception raised { $msgTitle }: Failed to create the specified database alias 'foo.bar'. Database alias does not exist."
358+
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.`
360360

361361
Had the composite database `foo` not existed, the database alias `foo.bar` would have been dropped.
362362

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +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 also contains the following additional GQLSTATUS code and information along with the Neo4j exception:
299-
[soruce, json, role="noheader"]
300-
----
301-
"GQLSTATUS": "50N05",
302-
"statusDescription": "error: general processing exception - deadlock detected. Deadlock detected while trying to acquire locks. See log for more details."
303-
----
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.` along with the Neo4j exception.
304299

305300
All locks acquired by the transaction are still held but will be released when the transaction finishes.
306301
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)