ptupitsyn commented on code in PR #4902:
URL: https://github.com/apache/ignite-3/pull/4902#discussion_r1916968537


##########
modules/api/src/main/java/org/apache/ignite/tx/TransactionOptions.java:
##########
@@ -39,10 +39,17 @@ public long timeoutMillis() {
     /**
      * Sets transaction timeout, in milliseconds.
      *
-     * @param timeoutMillis Transaction timeout, in milliseconds.
+     * @param timeoutMillis Transaction timeout, in milliseconds. Cannot be 
negative; 0 means 'use default timeout'.
+     *     For RO transactions, the default timeout is data availability time 
configured via ignite.gc.lowWatermark.dataAvailabilityTime
+     *     configuration setting.
+     *     For RW transactions, timeouts are not supported yet. TODO: 
IGNITE-15936
      * @return {@code this} for chaining.
      */
     public TransactionOptions timeoutMillis(long timeoutMillis) {

Review Comment:
   >  not valid to have a RO transaction with `timeout > dataAvailabilityTime`
   
   Low Watermark is supposed to be locked for the duration of an RO 
transaction, so we should be able to exceed the data availability time, right?
   
   P.S. The linked document is not public.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to