[ 
https://issues.apache.org/jira/browse/IGNITE-19886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladislav Pyatkov updated IGNITE-19886:
---------------------------------------
    Description: 
*Motivation*
The timestamp is generated in the commit partition for a particular transaction 
at the time when the transaction is committed. Any other node cannot get the 
timestamp through API. But client node have to have possibility to get it.
*Implementation notes*
Extend interface of InternalTransaction with method:
{code}
/**
 * Fixes transaction.
 *
 * @param commit True when the transaction committed, false is rolled back.
 * @return Future with commit timestamp or {@code null} if timestamp is not 
specified for the transaction type.
 */
CompletableFuture<Void> finish(boolean commit);
{code}

  was:
*Motivation*
The timestamp is generated in the commit partition for a particular transaction 
at the time when the transaction is committed. Any other node cannot get the 
timestamp through API. But client node have to have possibility to get it.
*Implementation notes*
Extend interface of InternalTransaction with method:
{code}
/**
     * Fixes transaction.
     *
     * @param commit True when the transaction committed, false is rolled back.
     * @return Future with commit timestamp or {@code null} if timestamp is not 
specified for the transaction type.
     */
    CompletableFuture<Void> finish(boolean commit);
{code}


> Metod to receive commit transaction timstamp
> --------------------------------------------
>
>                 Key: IGNITE-19886
>                 URL: https://issues.apache.org/jira/browse/IGNITE-19886
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Vladislav Pyatkov
>            Priority: Major
>              Labels: ignite-3
>
> *Motivation*
> The timestamp is generated in the commit partition for a particular 
> transaction at the time when the transaction is committed. Any other node 
> cannot get the timestamp through API. But client node have to have 
> possibility to get it.
> *Implementation notes*
> Extend interface of InternalTransaction with method:
> {code}
> /**
>  * Fixes transaction.
>  *
>  * @param commit True when the transaction committed, false is rolled back.
>  * @return Future with commit timestamp or {@code null} if timestamp is not 
> specified for the transaction type.
>  */
> CompletableFuture<Void> finish(boolean commit);
> {code}



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

Reply via email to