mariadb/storage
mariadb-DebarunBanerjee 969669767b MDEV-33011 mariabackup --backup: FATAL ERROR: ... Can't open datafile cool_down/t3
The root cause is the WAL logging of file operation when the actual
operation fails afterwards. It creates a situation with a log entry for
a operation that would always fail. I could simulate both the backup
scenario error and Innodb recovery failure exploiting the weakness.

We are following WAL for file rename operation and once logged the
operation must eventually complete successfully, or it is a major
catastrophe. Right now, we fail for rename and handle it as normal error
and it is the problem.

I created a patch to address RENAME operation to a non existing schema
where the destination schema directory is missing. The patch checks for
the missing schema before logging in an attempt to avoid the failure
after WAL log is written/flushed. I also checked that the schema cannot
be dropped or there cannot be any race with other rename to the same
file. This is protected by the MDL lock in SQL today.

The patch should this be a good improvement over the current situation
and solves the issue at hand.
2024-02-27 17:59:20 +05:30
..
archive Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
blackhole Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
cassandra Merge commit '10.4' into 10.5 2023-07-20 11:54:52 +02:00
columnstore MDEV-33290: Disable ColumnStore based on boost version 2024-01-23 15:20:25 +11:00
connect MDEV-33439 Fix build with libxml2 2.12 2024-02-13 16:40:58 +11:00
csv Merge branch 'bb-10.4-release' into bb-10.5-release 2021-02-15 16:43:15 +01:00
example Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
federated Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
federatedx Merge branch '10.4' into 10.5 2024-01-31 17:32:53 +01:00
heap Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
innobase MDEV-33011 mariabackup --backup: FATAL ERROR: ... Can't open datafile cool_down/t3 2024-02-27 17:59:20 +05:30
maria MDEV-33277 In-place upgrade causes invalid AUTO_INCREMENT values 2024-02-08 10:35:45 +02:00
mroonga Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
myisam Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
myisammrg MDEV-31083 ASAN use-after-poison in myrg_attach_children 2023-05-23 09:16:36 +03:00
oqgraph Merge 10.4 into 10.5 2023-09-11 11:29:31 +03:00
perfschema Fix inconsistent definition of PERFORMANCE_SCHEMA.REPLICATION_APPLIER_STATUS.COUNT_TRANSACTIONS_RETRIES column 2024-02-08 13:16:35 +11:00
rocksdb Merge 10.4 into 10.5 2024-02-12 11:38:13 +02:00
sequence Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
sphinx Merge branch '10.4' into 10.5 2024-01-10 18:01:46 +11:00
spider MDEV-33493 Spider: Make a symlink result file a normal file 2024-02-21 14:18:53 +11:00
test_sql_discovery Merge remote-tracking branch 'origin/10.4' into 10.5 2022-09-14 16:24:51 +04:00
tokudb Merge 10.4 into 10.5 2024-02-12 11:38:13 +02:00