[
https://issues.apache.org/jira/browse/IGNITE-19887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vladislav Pyatkov updated IGNITE-19887:
---------------------------------------
Description:
*Motivation*
RO transaction has timestamp which determine a moment when data will be read.
To avoid waiting, safe time is supposed to provide the timestamp in the past.
The timestamp is determined by the last committed transaction on this server in
order to be available to retrieve all data which is locally fixed.
*Implementation notes*
* The last commit timestamp should save and update in {{TxManagerImpl}} during
any transaction committed.
* Read timestamp is determined as {{max(lastCommitTimestamp, now() -
safeTimePropagationFrequency)}} by default
* Add a new method to start read only transaction with specific timestamp:
{code}
/**
* Starts a readonly transaction with specific timestamp.
*
* @param readTimestamp Read timestamp.
* @return Reade only transaction.
*/
public ReadOnlyTransactionImpl begin(HybridTimestamp readTimestamp)
{code}
was:
*Motivation*
RO transaction has timestamp which determine a moment when data will be read.
To avoid waiting, safe time is supposed to provide the timestamp in the past.
The timestamp is determined by the last committed transaction on this server in
order to be available to retrieve all data which is locally fixed.
*Implementation notes*
* The last commit timestamp should save and update in {{TxManagerImpl}} during
any transaction committed.
* Read timestamp is determined as max(lastCommitTimestamp, now() -
safeTimePropagationFrequency)
* Add a new method to start read only transaction with specific timestamp:
{code}
/**
* Starts a readonly transaction with specific timestamp.
*
* @param readTimestamp Read timestamp.
* @return Reade only transaction.
*/
public ReadOnlyTransactionImpl begin(HybridTimestamp readTimestamp)
{code}
> Read timstamp for standalong server node
> ----------------------------------------
>
> Key: IGNITE-19887
> URL: https://issues.apache.org/jira/browse/IGNITE-19887
> Project: Ignite
> Issue Type: Improvement
> Reporter: Vladislav Pyatkov
> Priority: Major
> Labels: ignite-3
>
> *Motivation*
> RO transaction has timestamp which determine a moment when data will be read.
> To avoid waiting, safe time is supposed to provide the timestamp in the past.
> The timestamp is determined by the last committed transaction on this server
> in order to be available to retrieve all data which is locally fixed.
> *Implementation notes*
> * The last commit timestamp should save and update in {{TxManagerImpl}}
> during any transaction committed.
> * Read timestamp is determined as {{max(lastCommitTimestamp, now() -
> safeTimePropagationFrequency)}} by default
> * Add a new method to start read only transaction with specific timestamp:
> {code}
> /**
> * Starts a readonly transaction with specific timestamp.
> *
> * @param readTimestamp Read timestamp.
> * @return Reade only transaction.
> */
> public ReadOnlyTransactionImpl begin(HybridTimestamp readTimestamp)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)