You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print(f"Commit failed on attempt {attempt+1}. Retrying in {wait_time} seconds...")
58
58
time.sleep(wait_time)
@@ -62,12 +62,12 @@ To address these problems, consider the following strategies:
62
62
raise e
63
63
```
64
64
65
-
Keep in mind that adjusting the `max_retries`, `initial_wait_time`, `backoff_factor`, and `jitter` is important to avoid overloading the system with retries.
65
+
Keep in mind that adjusting the `max_retries`, `initial_wait_time`, `backoff_factor`, and `jitter` is important to avoid overloading the system with retries.
66
66
For more information on how to handle retries and adjust parameters, please refer to the respective [client documentation](../../client-libraries.mdx) since examples will vary based on different clients.
67
67
68
-
-**Understand the client you are using:**
69
-
Neo4j clients in managed transactions have built-in logic to retry transactions that fail due to
70
-
serialization errors automatically. Typically, a timeout is associated with these retries, after which
68
+
-**Understand the client you are using:**
69
+
Neo4j clients in managed transactions have built-in logic to retry transactions that fail due to
70
+
serialization errors automatically. Typically, a timeout is associated with these retries, after which
71
71
the client will forward the error to the application code. Developers must be
72
72
aware of this and implement additional error handling as required.
73
73
@@ -87,17 +87,17 @@ To address these problems, consider the following strategies:
87
87
-**Avoid conflicts**: This can be done by
88
88
implementing application-level logic to prevent concurrent transactions from
89
89
modifying the same data points. This strategy can significantly reduce the
90
-
likelihood of encountering errors. It will also lead to better performance
91
-
since the system is not spending time resolving conflict.
90
+
likelihood of encountering errors. It will also lead to better performance
91
+
since the system is not spending time resolving conflict.
92
92
93
93
Handling serialization errors effectively is essential for maintaining a smooth
94
94
user experience and ensuring the reliability of your application. Implementing
95
95
robust error handling and conflict avoidance mechanisms can mitigate the impact
96
96
of these errors.
97
97
98
-
While some client drivers may handle serialization errors by retrying transactions,
99
-
developers should not rely solely on this mechanism. Always include comprehensive error handling
100
-
in your application to address cases where the error persists beyond the retry logic.
98
+
While some client drivers may handle serialization errors by retrying transactions,
99
+
developers should not rely solely on this mechanism. Always include comprehensive error handling
100
+
in your application to address cases where the error persists beyond the retry logic.
101
101
102
102
103
103
## Transaction timeout
@@ -111,14 +111,15 @@ in your application to address cases where the error persists beyond the retry l
111
111
The transaction that is running exceeds the query execution timeout that is set in the Memgraph configuration to 600 seconds by default.
112
112
To change that, update the flag `--query-execution-timeout-sec` value to a value that is large enough to handle the transaction (query) you're running or set it to 0 for no limit.
113
113
114
-
Here are the [instructions](/configuration/configuration-settings#using-flags-and-config-file) on how to update the configuration.
114
+
Here are the [instructions](/configuration/configuration-settings#using-flags-and-config-file) on how to update the configuration.
115
115
116
116
## Storage access timeout
117
117
118
118
### Error messages
119
119
120
120
Here are the storage access error messages you might encounter:
121
121
122
+
# TODO Update access types
122
123
1.**Cannot access storage, unique access query is running. Try again later.**
123
124
2.**Cannot get unique access to the storage. Try stopping other queries that are running in parallel.**
0 commit comments