[ 
https://issues.apache.org/jira/browse/IGNITE-25902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18018404#comment-18018404
 ] 

Pavel Tupitsyn commented on IGNITE-25902:
-----------------------------------------

[~v.pyatkov]
1. Please elaborate, where we can't use it? 
2. `ClientTransactions.beginAsync` takes `observableTimestamp` and passes it to 
the server as a read timestamp, so we have everything we need on the client to 
expose the read timestamp to the user 
https://github.com/apache/ignite-3/blob/main/modules/client/src/main/java/org/apache/ignite/internal/client/tx/ClientTransactions.java#L81

> Add transaction read timestamp to public API
> --------------------------------------------
>
>                 Key: IGNITE-25902
>                 URL: https://issues.apache.org/jira/browse/IGNITE-25902
>             Project: Ignite
>          Issue Type: Improvement
>          Components: ro transactions ai3, transactions ai3
>            Reporter: Pavel Tupitsyn
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.1
>
>
> Add the following to the *Transaction* interface:
> {code:java}
> /**
>  * Returns the read timestamp of the read-only transaction, or {@code null} 
> if the transaction is not read-only.
>  *
>  * <p>Read-only transactions provide a snapshot view of data at a point in 
> time represented by this timestamp.
>  *
>  * @return The timestamp of the transaction.
>  */
> @Nullable Instant readTimestamp();
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to