Marko Mäkelä
e9735a8185
MDEV-25975 innodb_disallow_writes causes shutdown to hang
...
We will remove the parameter innodb_disallow_writes because it is badly
designed and implemented. The parameter was never allowed at startup.
It was only internally used by Galera snapshot transfer.
If a user executed
SET GLOBAL innodb_disallow_writes=ON;
the server could hang even on subsequent read operations.
During Galera snapshot transfer, we will block writes
to implement an rsync friendly snapshot, as follows:
sst_flush_tables() will acquire a global lock by executing
FLUSH TABLES WITH READ LOCK, which will block any writes
at the high level.
sst_disable_innodb_writes(), invoked via ha_disable_internal_writes(true),
will suspend or disable InnoDB background tasks or threads that could
initiate writes. As part of this, log_make_checkpoint() will be invoked
to ensure that anything in the InnoDB buf_pool.flush_list will be written
to the data files. This has the nice side effect that the Galera joiner
will avoid crash recovery.
The changes to sql/wsrep.cc and to the tests are based on a prototype
that was developed by Jan Lindström.
Reviewed by: Jan Lindström
2022-04-06 08:06:49 +03:00
..
2018-10-10 18:30:42 +03:00
2020-03-16 10:10:33 +02:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2017-04-05 15:02:56 +04:00
2017-08-14 19:45:59 +02:00
2017-04-05 15:02:56 +04:00
2017-10-30 07:37:25 +04:00
2017-02-10 06:30:42 -05:00
2019-09-03 13:17:32 +03:00
2017-02-10 06:30:42 -05:00
2019-09-03 13:17:32 +03:00
2017-04-05 15:02:56 +04:00
2019-09-03 13:17:32 +03:00
2019-09-03 13:17:32 +03:00
2019-09-03 13:17:32 +03:00
2017-04-05 15:02:56 +04:00
2019-09-03 13:17:32 +03:00
2019-09-03 13:17:32 +03:00
2019-09-01 19:17:35 +03:00
2019-09-03 13:17:32 +03:00
2019-09-03 13:17:32 +03:00
2019-09-01 19:17:35 +03:00
2019-09-03 13:17:32 +03:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2020-01-21 11:22:47 +01:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-11-28 11:40:13 +03:00
2017-05-24 11:59:04 +02:00
2017-04-05 15:02:56 +04:00
2019-09-11 08:48:00 +03:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2020-10-29 15:16:53 +01:00
2017-04-05 15:02:56 +04:00
2019-09-03 13:17:32 +03:00
2017-10-24 14:53:18 +02:00
2017-10-24 14:53:18 +02:00
2017-04-05 15:02:56 +04:00
2020-08-25 10:15:04 +03:00
2017-04-05 15:02:56 +04:00
2019-09-01 19:17:35 +03:00
2017-02-10 06:30:42 -05:00
2019-09-01 19:17:35 +03:00
2020-02-05 15:34:02 +01:00
2017-04-05 15:02:56 +04:00
2019-09-01 19:17:35 +03:00
2018-02-22 15:50:50 +11:00
2017-11-05 20:34:03 +02:00
2017-11-07 23:02:39 +02:00
2017-11-05 20:34:03 +02:00
2019-12-10 17:01:36 +02:00
2018-04-29 09:41:42 +03:00
2019-09-09 18:18:52 +03:00
2021-03-11 12:50:04 +02:00
2020-04-01 11:34:32 +02:00
2017-04-24 15:09:18 +03:00
2018-03-07 17:49:42 +02:00
2020-04-01 11:34:32 +02:00
2018-04-11 05:39:36 +03:00
2018-04-29 09:41:42 +03:00
2018-04-29 09:41:42 +03:00
2022-02-24 22:41:23 +05:30
2018-11-06 08:41:48 +02:00
2018-11-06 08:41:48 +02:00
2019-05-08 12:49:08 +05:30
2019-05-08 12:49:08 +05:30
2022-02-24 22:41:23 +05:30
2021-01-13 18:55:56 +02:00
2020-03-30 12:41:59 +03:00
2020-04-01 11:34:32 +02:00
2017-03-22 19:08:24 +04:00
2020-08-18 16:46:07 +03:00
2017-07-06 14:18:53 +03:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2017-04-26 23:03:28 +03:00
2020-04-01 11:34:32 +02:00
2017-01-06 14:52:35 +02:00
2017-10-24 19:12:59 +03:00
2020-04-01 11:34:32 +02:00
2019-12-10 17:01:36 +02:00
2017-03-05 01:00:21 +02:00
2020-04-01 11:34:32 +02:00
2020-04-01 11:34:32 +02:00
2017-11-28 11:40:13 +03:00
2020-04-01 11:34:32 +02:00
2017-01-11 09:18:35 +02:00
2017-04-05 15:02:56 +04:00
2021-10-26 00:29:27 +04:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2017-11-28 11:40:13 +03:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-03-22 19:08:24 +04:00
2017-11-28 11:40:13 +03:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2017-04-07 09:55:54 +02:00
2017-10-05 11:45:32 +02:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2017-10-05 11:45:32 +02:00
2019-09-01 19:17:35 +03:00
2017-02-10 06:30:42 -05:00
2019-09-01 19:17:35 +03:00
2017-11-28 11:40:13 +03:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2019-09-03 13:17:32 +03:00
2019-09-03 13:17:32 +03:00
2019-09-01 19:17:35 +03:00
2018-04-12 12:41:19 +03:00
2017-04-05 15:02:56 +04:00
2019-09-01 19:17:35 +03:00
2020-12-10 08:45:20 +01:00
2018-06-20 17:14:04 +04:00
2017-02-10 06:30:42 -05:00
2019-09-01 19:17:35 +03:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2018-05-07 14:58:11 +05:30
2017-04-05 15:02:56 +04:00
2017-11-28 11:40:13 +03:00
2017-11-28 11:40:13 +03:00
2020-04-01 11:34:32 +02:00
2020-07-14 22:59:19 +03:00
2020-04-01 11:34:32 +02:00
2017-11-28 11:40:13 +03:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-11-28 11:40:13 +03:00
2017-04-05 15:02:56 +04:00
2019-09-01 19:17:35 +03:00
2017-04-05 15:02:56 +04:00
2017-02-10 06:30:42 -05:00
2020-10-23 12:20:17 +04:00
2019-08-05 16:03:33 +04:00
2020-10-28 10:56:38 +01:00
2017-12-18 13:43:37 +02:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2020-10-28 10:01:50 +02:00
2017-04-05 15:02:56 +04:00
2017-02-10 06:30:42 -05:00
2017-12-03 13:58:35 +02:00
2017-12-03 13:58:35 +02:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2019-09-01 19:17:35 +03:00
2017-11-28 11:40:13 +03:00
2017-11-28 11:40:13 +03:00
2017-11-28 11:40:13 +03:00
2017-11-28 11:40:13 +03:00
2017-11-28 11:40:13 +03:00
2017-11-28 11:40:13 +03:00
2018-11-06 08:41:48 +02:00
2018-02-12 13:14:23 +01:00
2017-11-28 11:40:13 +03:00
2017-11-28 11:40:13 +03:00
2017-11-28 11:40:13 +03:00
2017-11-28 11:40:13 +03:00
2017-02-10 06:30:42 -05:00
2019-09-03 13:17:32 +03:00
2017-04-05 15:02:56 +04:00
2019-09-01 19:17:35 +03:00
2017-11-02 12:07:44 +02:00
2019-09-04 09:30:43 +02:00
2022-02-25 10:30:04 +02:00
2022-04-06 08:06:49 +03:00
2022-01-29 15:41:05 +01:00
2022-01-28 16:31:53 +02:00
2019-09-03 13:17:32 +03:00
2021-07-27 14:15:01 +03:00
2021-02-18 19:03:01 +01:00
2019-09-03 13:17:32 +03:00
2020-08-10 11:58:56 +02:00
2017-11-17 21:40:20 +00:00
2017-01-26 17:39:36 +00:00
2018-10-12 08:22:10 +02:00
2019-03-06 15:12:11 +01:00
2017-06-30 22:31:37 +03:00
2019-02-05 01:34:17 +01:00
2017-06-30 22:31:37 +03:00
2017-04-05 15:02:56 +04:00
2017-11-28 11:40:13 +03:00
2020-08-25 10:15:04 +03:00
2019-09-01 19:17:35 +03:00
2020-10-05 10:34:01 +03:00
2019-01-26 01:15:44 +01:00
2018-03-23 00:55:20 +01:00
2017-08-16 07:49:19 +03:00