summaryrefslogtreecommitdiff
path: root/extra/mariabackup
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '10.9' into 10.10Oleksandr Byelkin2022-11-011-5/+10
|\
| * MDEV-28772 Mariabackup locks database for minutes since 10.8.3Marko Mäkelä2022-10-171-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mariadb-backup: Add the Boolean option --innodb-log-file-buffering (default ON) to control whether the server's ib_logfile0 should be accessed via the file system cache during --backup. We may be retrying reads of the last log block very frequently, which may cause I/O stalls when the file system cache is being bypassed. This addresses a regression that was introduced in commit 4c0cd953abffea841271f3a5cce1712d5e6c5633 (MDEV-28766). On some affected systems, it may make sense to additionally SET GLOBAL innodb_log_file_buffering=OFF on the server for the duration of making a backup.
* | Merge 10.9 into 10.10Marko Mäkelä2022-09-212-2/+3
|\ \ | |/
| * Merge 10.7 into 10.8Marko Mäkelä2022-09-212-2/+3
| |\
| | * Merge 10.6 into 10.7Marko Mäkelä2022-09-212-2/+3
| | |\
| | | * Merge 10.5 into 10.6Marko Mäkelä2022-09-202-2/+3
| | | |\
| | | | * Merge 10.4 into 10.5Marko Mäkelä2022-09-201-1/+1
| | | | |\
| | | | | * Merge 10.3 into 10.4Marko Mäkelä2022-09-201-1/+1
| | | | | |\
| | | | | | * InnoDB cleanup: Replace UNIV_LINUX, UNIV_SOLARIS, UNIV_AIXMarko Mäkelä2022-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let us use the normal platform-specific preprocessor symbols __linux__, __sun__, _AIX instead of some homebrew ones. The preprocessor symbol UNIV_HPUX must have lost its meaning by f6deb00a56b2e87287d606aba3bcd71290d876ae (note: the symbol UNIV_HPUX10 is being checked for, but only UNIV_HPUX is defined).
| | | | * | | Merge 10.4 into 10.5Daniel Black2022-09-191-1/+2
| | | | |\ \ \ | | | | | |/ /
| | | | | * | MDEV-18589 Assertion on info.page_size failed in xb_delta_open_matching_spaceMarko Mäkelä2022-09-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xb_read_delta_metadata(): For ROW_FORMAT=COMPRESSED tables, initialize the info.zip_size with the physical page size and let info.page_size remain the logical page size, like xb_delta_open_matching_space() expects it to be ever since commit 0a1c3477bf359c55be3e11ec6502bc7b5bb87f29 (MDEV-18493).
* | | | | | | Merge 10.9 into 10.10Marko Mäkelä2022-08-302-11/+17
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-08-302-11/+17
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.6 into 10.7Marko Mäkelä2022-08-302-11/+17
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-08-302-11/+17
| | | |\ \ \ \ | | | | |/ / /
| | | | * | | mariabackup: remove MySQL wordingDaniel Black2022-08-261-6/+6
| | | | | | |
| | | | * | | MDEV-23607 MariaBackup - align required GRANTS to cmd optionsDaniel Black2022-08-261-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the 10.5 split of the privileges, the required GRANTs for various mariabackup operations has changed. In the addition of tests, a number of mappings where incorrect: The option --lock-ddl-per-table didn't require connection admin. The option --safe-slave-backup requires SLAVE MONITOR even without the --no-lock option.
* | | | | | | Merge 10.9 into 10.10Marko Mäkelä2022-08-292-10/+45
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-08-242-10/+45
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.6 into 10.7Marko Mäkelä2022-08-242-10/+45
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-08-221-8/+43
| | | |\ \ \ \ | | | | |/ / /
| | | | * | | Merge 10.4 into 10.5Marko Mäkelä2022-08-221-8/+43
| | | | |\ \ \ | | | | | |/ /
| | | | | * | Merge 10.3 into 10.4Marko Mäkelä2022-08-221-8/+43
| | | | | |\ \ | | | | | | |/
| | | | | | * MDEV-29043 mariabackup --compress hangsMarko Mäkelä2022-08-191-8/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Even though commit b817afaa1c148437e1016d1981f138d0c46ccbc8 passed the test mariabackup.compress_qpress, that test turned out to be too small to reveal one more problem that had previously been prevented by the existence of ctrl_mutex. I did not realize that there can be multiple concurrent callers to compress_write(). One of them is the log copying thread; further callers are data file copying threads (default: --parallel=1). By default, there is only one compression worker thread (--compress-threads=1). compress_write(): Fix a race condition between threads that would use the same worker thread object. Make thd->data_avail contain the thread identifier of the submitter, and add thd->avail_cond to notify other compress_write() threads that are waiting for a slot.
| | | * | | | MDEV-21452 fixup: Avoid an unnecessary mutex operationMarko Mäkelä2022-08-191-2/+2
| | | | | | |
| * | | | | | Merge branch '10.7' into 10.8Oleksandr Byelkin2022-08-097-342/+77
| |\ \ \ \ \ \ | | |/ / / / /
* | | | | | | Merge branch '10.9' into 10.10Oleksandr Byelkin2022-08-097-342/+77
|\ \ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch '10.7' into 10.8Oleksandr Byelkin2022-08-087-342/+77
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| / / / / / | | |/ / / / /
| | * | | | | Merge branch '10.6' into 10.7Oleksandr Byelkin2022-08-087-342/+77
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Merge branch '10.5' into bb-10.6-releaseOleksandr Byelkin2022-08-037-342/+77
| | | |\ \ \ \ | | | | |/ / /
| | | | * | | Merge branch '10.4' into 10.5Oleksandr Byelkin2022-08-037-342/+77
| | | | |\ \ \ | | | | | |/ /
| | | | | * | Merge branch '10.3' into 10.4Oleksandr Byelkin2022-08-027-342/+77
| | | | | |\ \ | | | | | | |/
| | | | | | * only copy buffer pool dump in SST galera modeSergei Golubchik2022-08-011-39/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and then only into the default name, so that the joiner could find it
| | | | | | * revert mariabackup part of MDEV-27524, fix the testSergei Golubchik2022-08-017-330/+89
| | | | | | |
* | | | | | | don't use ssl for windows named pipes - it doesn't workSergei Golubchik2022-07-281-1/+1
| | | | | | |
* | | | | | | Merge 10.9 into 10.10Marko Mäkelä2022-07-282-115/+24
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-07-282-20/+22
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.6 into 10.7Marko Mäkelä2022-07-272-20/+22
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-07-271-18/+22
| | | |\ \ \ \ | | | | |/ / /
| | | | * | | Merge 10.4 into 10.5Marko Mäkelä2022-07-271-18/+22
| | | | |\ \ \ | | | | | |/ /
| | | | | * | Merge branch '10.3' into 10.4Oleksandr Byelkin2022-07-271-15/+15
| | | | | |\ \ | | | | | | |/
| | | | | | * MDEV-28689, MDEV-28690: Remove ctrl_mutexMarko Mäkelä2022-07-111-70/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts the revert 4f62dfe676c29437b4a19c4d229e2accd2dda4a6 and fixes the hang that was introduced when ctrl_mutex was removed. The test mariabackup.compress_qpress covers this code, but the test is skipped if a stand-alone qpress executable is not available. It is not available in many software repositories, possibly because the code base has not been updated since 2010. This was tested with an executable that was compile from the source code at http://www.quicklz.com/qpress-11-source.zip (after adding a missing #include <unistd.h> for the definition of isatty()). Compared to the grandparent commit (before the revert), the changes are as follows: comp_thread_ctxt_t::done_cond: A separate condition for completed compression, signaling that thd->to_len has been updated. compress_write(): Replace some threads[i] with thd. Reset thd->to_len = 0 after consuming the compressed data. compress_worker_thread_func(): After consuming the uncompressed data, set thd->data_avail = FALSE. After compressing, signal thd->done_cond.
| | | | | | * Revert "MDEV-28689, MDEV-28690: Incorrect error handling for ctrl_mutex"Vladislav Vaintroub2022-07-111-22/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 863c3eda872b19f70ce6045119bf621584e1312d.
| | | * | | | MDEV-29137 mariabackup excessive logging of ddl trackingThirunarayanan Balathandayuthapani2022-07-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove the FILE_MODIFY message in backup_file_op()
| | | * | | | MDEV-29137 mariabackup excessive logging of ddl trackingThirunarayanan Balathandayuthapani2022-07-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove the FILE_MODIFY message from mariabackup which was displaying the list of file names which were modified since the previous checkpoint.
| * | | | | | MDEV-28994 Backup of memory-mapped log is corruptedMarko Mäkelä2022-07-011-95/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An interface to use memory-mapped I/O on the InnoDB redo log that is stored in persistent memory was introduced in commit 685d958e38b825ad9829be311f26729cccf37c46 (MDEV-14425). log_t::attach(): In mariadb-backup --backup, never attempt to use memory-mapped I/O for reading the log file of the server. xtrabackup_copy_logfile(): Assert !log_sys.is_pmem() and remove the code to deal with a memory-mapped log. This fixes a race condition scenario of the following type: 1. Backup parsed a mini-transaction from the memory-mapped buffer. This took some time. 2. Meanwhile, the server might have overwritten this portion of the circular log_sys.buf. 3. Backup copied the data to the output file while or after the server had overwritten this portion of the file. 4. Backup failed to notice that a log overrun occurred. The symptom of this was that a mariadb-backup --prepare of the log failed. In the analyzed case, the error message was: [ERROR] InnoDB: Missing FILE_CHECKPOINT(...) This will also make it possible to run mariadb-backup --backup under "rr replay".
* | | | | | | Merge 10.9 into 10.10Marko Mäkelä2022-06-171-11/+15
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Merge 10.7 into 10.8Marko Mäkelä2022-06-161-11/+15
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge 10.6 into 10.7Marko Mäkelä2022-06-161-19/+19
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Merge 10.5 into 10.6Marko Mäkelä2022-06-161-19/+19
| | | |\ \ \ \ | | | | |/ / /