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
The timeout behaves differently on different server versions in respects to
the user being or not being able to overwrite the server timeout with a bigger
value.
Also make sure the docs mention special values like `Duration.ZERO`.
Copy file name to clipboardexpand all lines: driver/src/main/java/org/neo4j/driver/TransactionConfig.java
+5-3
Original file line number
Diff line number
Diff line change
@@ -174,10 +174,12 @@ private Builder() {}
174
174
* Set the transaction timeout. Transactions that execute longer than the configured timeout will be terminated by the database.
175
175
* See also {@link #withDefaultTimeout}.
176
176
* <p>
177
-
* This functionality allows to limit query/transaction execution time. Specified timeout overrides the default timeout configured in the database
178
-
* using {@code dbms.transaction.timeout} setting.
177
+
* This functionality allows to limit query/transaction execution time.
178
+
* The Specified timeout overrides the default timeout configured in the database using the {@code db.transaction.timeout} setting ({@code dbms.transaction.timeout} before Neo4j 5.0).
179
+
* Values higher than {@code db.transaction.timeout} will be ignored and will fall back to the default for server versions 4.2 to including 5.2.
179
180
* <p>
180
-
* Provided value should not represent a negative duration.
181
+
* The provided value should not represent a negative duration.
182
+
* {@link Duration#ZERO} will make the transaction execute indefinitely.
0 commit comments