Skip to content

Commit 59619e8

Browse files
committed
Verify WSREP_LAST_SEEN_GTID value after SST.
1 parent 1c0acbd commit 59619e8

6 files changed

+50
-6
lines changed

mysql-test/suite/galera/r/galera_sst_mariabackup_gtid,debug.rdiff

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- suite/galera/r/galera_sst_mariabackup_gtid.result 2025-01-02 15:34:28.251593452 +0200
2-
+++ suite/galera/r/galera_sst_mariabackup_gtid.reject 2025-01-02 16:01:18.058469177 +0200
3-
@@ -516,19 +516,203 @@
1+
--- suite/galera/r/galera_sst_mariabackup_gtid.result 2025-01-08 07:43:36.883366596 +0200
2+
+++ suite/galera/r/galera_sst_mariabackup_gtid,debug.reject 2025-01-08 07:59:27.330696723 +0200
3+
@@ -516,27 +516,211 @@
44
1
55
DROP TABLE t1;
66
COMMIT;
@@ -197,6 +197,11 @@
197197
+gtid_binlog_pos 100-10-33
198198
+gtid_current_pos 100-10-33
199199
gtid_slave_pos
200+
Expect 100-10-24 (Release) 100-10-33 (Debug)
201+
SELECT WSREP_LAST_SEEN_GTID();
202+
WSREP_LAST_SEEN_GTID()
203+
-100-10-24
204+
+100-10-33
200205
connection node_2;
201206
# Node_2
202207
SHOW global variables like 'gtid%pos';
@@ -206,5 +211,10 @@
206211
+gtid_binlog_pos 100-10-33
207212
+gtid_current_pos 100-10-33
208213
gtid_slave_pos
214+
Expect 100-10-24 (Release) 100-10-33 (Debug)
215+
SELECT WSREP_LAST_SEEN_GTID();
216+
WSREP_LAST_SEEN_GTID()
217+
-100-10-24
218+
+100-10-33
209219
disconnect node_2;
210220
disconnect node_1;

mysql-test/suite/galera/r/galera_sst_mariabackup_gtid.result

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,12 +523,20 @@ Variable_name Value
523523
gtid_binlog_pos 100-10-24
524524
gtid_current_pos 100-10-24
525525
gtid_slave_pos
526+
Expect 100-10-24 (Release) 100-10-33 (Debug)
527+
SELECT WSREP_LAST_SEEN_GTID();
528+
WSREP_LAST_SEEN_GTID()
529+
100-10-24
526530
connection node_2;
527531
# Node_2
528532
SHOW global variables like 'gtid%pos';
529533
Variable_name Value
530534
gtid_binlog_pos 100-10-24
531535
gtid_current_pos 100-10-24
532536
gtid_slave_pos
537+
Expect 100-10-24 (Release) 100-10-33 (Debug)
538+
SELECT WSREP_LAST_SEEN_GTID();
539+
WSREP_LAST_SEEN_GTID()
540+
100-10-24
533541
disconnect node_2;
534542
disconnect node_1;

mysql-test/suite/galera/r/galera_sst_rsync_gtid,debug.rdiff

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- suite/galera/r/galera_sst_rsync_gtid.result 2025-01-02 15:35:15.162175835 +0200
2-
+++ suite/galera/r/galera_sst_rsync_gtid.reject 2025-01-02 16:02:08.588902711 +0200
3-
@@ -516,19 +516,203 @@
1+
--- suite/galera/r/galera_sst_rsync_gtid.result 2025-01-08 07:44:23.970785390 +0200
2+
+++ suite/galera/r/galera_sst_rsync_gtid,debug.reject 2025-01-08 08:00:17.594349754 +0200
3+
@@ -516,27 +516,211 @@
44
1
55
DROP TABLE t1;
66
COMMIT;
@@ -197,6 +197,11 @@
197197
+gtid_binlog_pos 100-10-33
198198
+gtid_current_pos 100-10-33
199199
gtid_slave_pos
200+
Expect 100-10-24 (Release) 100-10-33 (Debug)
201+
SELECT WSREP_LAST_SEEN_GTID();
202+
WSREP_LAST_SEEN_GTID()
203+
-100-10-24
204+
+100-10-33
200205
connection node_2;
201206
# Node_2
202207
SHOW global variables like 'gtid%pos';
@@ -206,5 +211,10 @@
206211
+gtid_binlog_pos 100-10-33
207212
+gtid_current_pos 100-10-33
208213
gtid_slave_pos
214+
Expect 100-10-24 (Release) 100-10-33 (Debug)
215+
SELECT WSREP_LAST_SEEN_GTID();
216+
WSREP_LAST_SEEN_GTID()
217+
-100-10-24
218+
+100-10-33
209219
disconnect node_2;
210220
disconnect node_1;

mysql-test/suite/galera/r/galera_sst_rsync_gtid.result

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,12 +523,20 @@ Variable_name Value
523523
gtid_binlog_pos 100-10-24
524524
gtid_current_pos 100-10-24
525525
gtid_slave_pos
526+
Expect 100-10-24 (Release) 100-10-33 (Debug)
527+
SELECT WSREP_LAST_SEEN_GTID();
528+
WSREP_LAST_SEEN_GTID()
529+
100-10-24
526530
connection node_2;
527531
# Node_2
528532
SHOW global variables like 'gtid%pos';
529533
Variable_name Value
530534
gtid_binlog_pos 100-10-24
531535
gtid_current_pos 100-10-24
532536
gtid_slave_pos
537+
Expect 100-10-24 (Release) 100-10-33 (Debug)
538+
SELECT WSREP_LAST_SEEN_GTID();
539+
WSREP_LAST_SEEN_GTID()
540+
100-10-24
533541
disconnect node_2;
534542
disconnect node_1;

mysql-test/suite/galera/t/galera_sst_mariabackup_gtid.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@
2121
--connection node_1
2222
--echo # Node_1
2323
SHOW global variables like 'gtid%pos';
24+
--echo Expect 100-10-24 (Release) 100-10-33 (Debug)
25+
SELECT WSREP_LAST_SEEN_GTID();
2426

2527
--connection node_2
2628
--echo # Node_2
2729
SHOW global variables like 'gtid%pos';
30+
--echo Expect 100-10-24 (Release) 100-10-33 (Debug)
31+
SELECT WSREP_LAST_SEEN_GTID();
2832

2933
--source include/galera_end.inc

mysql-test/suite/galera/t/galera_sst_rsync_gtid.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@
2121
--connection node_1
2222
--echo # Node_1
2323
SHOW global variables like 'gtid%pos';
24+
--echo Expect 100-10-24 (Release) 100-10-33 (Debug)
25+
SELECT WSREP_LAST_SEEN_GTID();
2426

2527
--connection node_2
2628
--echo # Node_2
2729
SHOW global variables like 'gtid%pos';
30+
--echo Expect 100-10-24 (Release) 100-10-33 (Debug)
31+
SELECT WSREP_LAST_SEEN_GTID();
2832

2933
--source include/galera_end.inc

0 commit comments

Comments
 (0)