Skip to content

Commit f73dc5d

Browse files
committed
access timeout
1 parent 0cf7f51 commit f73dc5d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pages/help-center/errors/transactions.mdx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {CommunityLinks} from '/components/social-card/CommunityLinks'
1212
While working with Memgraph, you can encounter various transaction errors. Here are some of them, along with the instructions on how to handle them:
1313
- [Conflicting transactions](#conflicting-transaction)
1414
- [Transaction timeout](#transaction-timeout)
15+
- [Storage access timeout](#storage-access-timeout)
1516

1617
## Conflicting transactions
1718

@@ -114,3 +115,32 @@ Here are the [instructions](/configuration/configuration-settings#using-flags-an
114115

115116

116117
<CommunityLinks/>
118+
119+
## Storage access timeout
120+
Storage access errors can occur while preparing a query. Here are the storage access error messages you might encounter:
121+
- [Shared access timeout](#shared-access-timeout)
122+
- [Unique access timeout](#shared-access-timeout)
123+
124+
### Error messages
125+
126+
1. **Cannot access storage, unique access query is running. Try again later.**
127+
2. **Cannot get unique access to the storage. Try stopping other queries that are running in parallel.**
128+
129+
### Understanding storage access timeout
130+
131+
Storage access timeouts occur during query preparation when the query execution engine cannot get the required type of access to the storage. There are two types of storage access:
132+
133+
- **Shared access:** Multiple queries can have shared access at the same time, but shared access cannot be granted while a query with unique access is running.
134+
- **Unique access:** Only one query can have unique access at a time, and no other query can have any type of access during that period.
135+
136+
These timeouts prevent worker starvation and database blocking that could occur if queries were to wait indefinitely for storage access.
137+
138+
### Handling storage access timeout
139+
140+
When you encounter a storage access timeout:
141+
142+
1. Check for long-running queries that might be blocking storage access
143+
2. Consider breaking down complex queries that require unique access into smaller operations
144+
3. Retry the query after other queries have completed
145+
4. If possible, schedule queries requiring unique access during periods of lower database activity
146+

0 commit comments

Comments
 (0)