From c2967830cb091e942982e10bddd8e22810101682 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Fri, 20 Sep 2024 14:13:32 +0800 Subject: [PATCH] Remove All Binlog References from CDC Documentation (#18949) (#18962) --- dr-secondary-cluster.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/dr-secondary-cluster.md b/dr-secondary-cluster.md index d8160cb1794df..37126f1e3e58d 100644 --- a/dr-secondary-cluster.md +++ b/dr-secondary-cluster.md @@ -299,13 +299,20 @@ It is important to conduct regular DR drills for critical business systems to te 2. After there are no more writes, query the latest TSO (`Position`) of the TiDB cluster: ```sql - mysql> show master status; - +-------------+--------------------+--------------+------------------+-------------------+ - | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | - +-------------+--------------------+--------------+------------------+-------------------+ - | tidb-binlog | 438223974697009153 | | | | - +-------------+--------------------+--------------+------------------+-------------------+ - 1 row in set (0.33 sec) + BEGIN; SELECT TIDB_CURRENT_TSO(); ROLLBACK; + ``` + + ```sql + Query OK, 0 rows affected (0.00 sec) + + +--------------------+ + | TIDB_CURRENT_TSO() | + +--------------------+ + | 452654700157468673 | + +--------------------+ + 1 row in set (0.00 sec) + + Query OK, 0 rows affected (0.00 sec) ``` 3. Poll the changefeed `dr-primary-to-secondary` until it meets the condition `TSO >= Position`.