Skip to content

Commit

Permalink
flashback: add limitation with stale read/snapshot (pingcap#19347)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiancai authored Dec 16, 2024
1 parent 95a6343 commit 67712d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql-statements/sql-statement-flashback-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Starting from v6.5.6, v7.1.3, v7.5.1, and v7.6.0, TiDB introduces the `FLASHBACK
> **Warning:**
>
> When specifying a recovery point in time, make sure to check the validity of your target timestamp or TSO and avoid specifying a future time that exceeds the maximum TSO currently allocated by PD (see `Current TSO` on the Grafana PD panel). Otherwise, concurrent processing linear consistency and transaction isolation levels might be violated, leading to serious data correctness issues.
> - When specifying a recovery point in time, make sure to check the validity of your target timestamp or TSO and avoid specifying a future time that exceeds the maximum TSO currently allocated by PD (see `Current TSO` on the Grafana PD panel). Otherwise, concurrent processing linear consistency and transaction isolation levels might be violated, leading to serious data correctness issues.
> - During `FLASHBACK CLUSTER` execution, the data cleanup process does not guarantee transaction consistency. After `FLASHBACK CLUSTER` completes, if you intend to use any historical version reading features in TiDB (such as [Stale Read](/stale-read.md) or [`tidb_snapshot`](/read-historical-data.md)), make sure that the specified historical timestamp falls outside the `FLASHBACK CLUSTER` execution period. Reading a historical version that includes data not fully restored by FLASHBACK might violate concurrent processing linear consistency and transaction isolation levels, leading to serious data correctness issues.
<CustomContent platform="tidb">

Expand Down

0 comments on commit 67712d4

Please sign in to comment.