Skip to content

Commit 6848df5

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

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ CREATE ALIAS yard FOR DATABASE garden
119119
----
120120
Failed to create the specified database alias 'yard': Database 'garden' is composite.
121121
122-
GQLSTATUS 42NA6, error: syntax error or access rule violation - invalid alias target. Aliases are not allowed to target composite databases.
122+
42NA6, error: syntax error or access rule violation - invalid alias target. Aliases are not allowed to target composite databases.
123123
----
124124

125125
== Alter local and remote database aliases in composite databases
@@ -355,7 +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, 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+
//"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."
359360

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

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ A deadlock occurs when two transactions are blocked by each other because they a
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`.
298298
From 5.25 onwards, the error also contains the following additional GQLSTATUS code and information along with the Neo4j exception:
299-
`50N05, error: general processing exception - deadlock detected. Deadlock detected while trying to acquire locks. See log for more details.``
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+
----
300304

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