Skip to content

Commit

Permalink
Remove All Binlog References from CDC Documentation (#18949) (#18961)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Sep 20, 2024
1 parent adab7c9 commit 88faf3f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions dr-secondary-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 88faf3f

Please sign in to comment.