Skip to content

Commit bada784

Browse files
committed
Add GQLSTATUS code to Neo. code
1 parent 54dc59f commit bada784

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ 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+
`50N05, error: general processing exception - deadlock detected. Deadlock detected while trying to acquire locks. See log for more details.``
298300

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