File tree Expand file tree Collapse file tree 6 files changed +28
-3
lines changed Expand file tree Collapse file tree 6 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -5262,6 +5262,7 @@ xb_process_datadir(
5262
5262
path, NULL ,
5263
5263
fileinfo.name , NULL ))
5264
5264
{
5265
+ os_file_closedir (dbdir);
5265
5266
return (FALSE );
5266
5267
}
5267
5268
}
@@ -5323,6 +5324,7 @@ xb_process_datadir(
5323
5324
dbinfo.name ,
5324
5325
fileinfo.name , NULL ))
5325
5326
{
5327
+ os_file_closedir (dbdir);
5326
5328
return (FALSE );
5327
5329
}
5328
5330
}
Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ galera_as_slave_preordered : wsrep-preordered feature not merged to MariaDB
20
20
GAL-419 : MDEV-13549 Galera test failures
21
21
galera_var_notify_cmd : MDEV-13549 Galera test failures
22
22
galera_as_slave_replication_bundle : MDEV-13549 Galera test failures
23
- galera_gcache_recover : MDEV-13549 Galera test failures
24
- galera_gcache_recover_full_gcache : MDEV-13549 Galera test failures
25
- galera_gcache_recover_manytrx : MDEV-13549 Galera test failures
26
23
galera_ssl_upgrade : MDEV-13549 Galera test failures
27
24
galera.MW-329 : wsrep_local_replays not stable
28
25
MW-416 : MDEV-13549 Galera test failures
Original file line number Diff line number Diff line change 1
1
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
2
2
INSERT INTO t1 VALUES (1);
3
3
SET SESSION wsrep_sync_wait = 0;
4
+ connection node_2;
4
5
SET SESSION wsrep_sync_wait = 0;
5
6
Killing server ...
7
+ connection node_1;
6
8
INSERT INTO t1 VALUES (2);
7
9
Killing server ...
10
+ connection node_1;
8
11
Performing --wsrep-recover ...
9
12
Using --wsrep-start-position when starting mysqld ...
10
13
INSERT INTO t1 VALUES (3);
14
+ connection node_2;
11
15
Performing --wsrep-recover ...
12
16
Using --wsrep-start-position when starting mysqld ...
17
+ connection node_1;
13
18
include/diff_servers.inc [servers=1 2]
19
+ connection node_1;
14
20
CALL mtr.add_suppression("Skipped GCache ring buffer recovery");
15
21
include/assert_grep.inc [async IST sender starting to serve]
22
+ connection node_2;
16
23
CALL mtr.add_suppression("Skipped GCache ring buffer recovery");
17
24
include/assert_grep.inc [Recovering GCache ring buffer: found gapless sequence]
18
25
DROP TABLE t1;
Original file line number Diff line number Diff line change 1
1
SET SESSION wsrep_sync_wait = 0;
2
2
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY AUTO_INCREMENT, f2 LONGBLOB) ENGINE=InnoDB;
3
+ connection node_2;
3
4
SET SESSION wsrep_sync_wait = 0;
4
5
Killing server ...
6
+ connection node_1;
5
7
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
6
8
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
7
9
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
8
10
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
9
11
INSERT INTO t1 (f2) VALUES (REPEAT('x', 1024 * 1024 * 10));
10
12
Killing server ...
13
+ connection node_1;
11
14
Performing --wsrep-recover ...
12
15
Using --wsrep-start-position when starting mysqld ...
16
+ connection node_2;
13
17
Performing --wsrep-recover ...
14
18
Using --wsrep-start-position when starting mysqld ...
19
+ connection node_1;
15
20
include/diff_servers.inc [servers=1 2]
21
+ connection node_1;
16
22
DROP TABLE t1;
17
23
CALL mtr.add_suppression("Skipped GCache ring buffer recovery");
18
24
include/assert_grep.inc [IST first seqno 2 not found from cache, falling back to SST]
25
+ connection node_2;
19
26
CALL mtr.add_suppression("Skipped GCache ring buffer recovery");
Original file line number Diff line number Diff line change @@ -2738,6 +2738,12 @@ trx_get_trx_by_xid_low(
2738
2738
&& trx_state_eq (trx, TRX_STATE_PREPARED)
2739
2739
&& xid->eq ((XID*)trx->xid )) {
2740
2740
2741
+ #ifdef WITH_WSREP
2742
+ /* The commit of a prepared recovered Galera
2743
+ transaction needs a valid trx->xid for
2744
+ invoking trx_sys_update_wsrep_checkpoint(). */
2745
+ if (wsrep_is_wsrep_xid (trx->xid )) break ;
2746
+ #endif
2741
2747
/* Invalidate the XID, so that subsequent calls
2742
2748
will not find it. */
2743
2749
trx->xid ->null ();
Original file line number Diff line number Diff line change @@ -2578,6 +2578,12 @@ trx_get_trx_by_xid_low(
2578
2578
&& memcmp (xid->data , trx->xid .data ,
2579
2579
xid->gtrid_length + xid->bqual_length ) == 0 ) {
2580
2580
2581
+ #ifdef WITH_WSREP
2582
+ /* The commit of a prepared recovered Galera
2583
+ transaction needs a valid trx->xid for
2584
+ invoking trx_sys_update_wsrep_checkpoint(). */
2585
+ if (wsrep_is_wsrep_xid (&trx->xid )) break ;
2586
+ #endif
2581
2587
/* Invalidate the XID, so that subsequent calls
2582
2588
will not find it. */
2583
2589
trx->xid .null ();
You can’t perform that action at this time.
0 commit comments