Skip to content

Commit

Permalink
TiFlash: Explain how to set query tso to 1 second earlier (pingcap#2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
toutdesuite authored and sre-bot committed Apr 9, 2020
1 parent d29cca6 commit 9c39ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/tiflash/maintain.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ This is because TiFlash is in an abnormal state caused by configuration errors o
This is because large amounts of data are written to the cluster, which causes that the TiFlash query encounters a lock and requires query retry.
You can set the query timestamp to one second earlier in TiDB (for example, `set @@tidb_snapshot=412881237115666555;`). This makes less TiFlash queries encounter a lock and mitigates the risk of unstable query time.
You can set the query timestamp to one second earlier in TiDB. For example, if the current time is '2020-04-08 20:15:01', you can execute `set @@tidb_snapshot='2020-04-08 20:15:00';` before you execute the query. This makes less TiFlash queries encounter a lock and mitigates the risk of unstable query time.
### Some queries return the `Region Unavailable` error
Expand Down

0 comments on commit 9c39ea4

Please sign in to comment.