summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-26562: galera-sst-mariabackup is failing due to missing ↵bb-10.9-MDEV-26562-galeraJulius Goryavsky2022-06-222-39/+70
| | | | | | | | | | | | xtrabackup_checkpoints This commit contains workaround for a bug known as 'Red Hat issue 1870279' (connection reset by peer issue in socat versions 1.7.3.3 to 1.7.4.0) which further causes crashes during SST using mariabackup (when openssl is used). Also fixed broken logic of automatic generation of the Diffie-Hellman parameters for socat version less than 1.7.3 (which defaults to 512-bit values instead of 2048-bit ones).
* MDEV-28656: Inability to roll upgrade without stopping the Galera clusterbb-10.9-MDEV-28656-galeraJulius Goryavsky2022-06-2210-559/+1198
| | | | | | | | | | | This commit fixes a divergence in the IST/SST script code between the 10.3+ and 10.9+ branches, due to which the cluster cannot contain nodes with different versions of the server (since in this case SST/IST scripts may fail). This commit also includes test fixes specific to 10.4+ branches and a few manual fixes after automatic "git cherry-pick", as well as server code change specific to 10.9+.
* Merge 10.8 into 10.9Marko Mäkelä2022-06-2135-496/+405
|\
| * Merge 10.7 into 10.8Marko Mäkelä2022-06-2135-496/+405
| |\
| | * Merge 10.6 into 10.7Marko Mäkelä2022-06-2132-423/+299
| | |\
| | | * MDEV-28836: Memory alignment cleanupMarko Mäkelä2022-06-2122-150/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Table_cache_instance: Define the structure aligned at the CPU cache line, and remove a pad[] data member. Krunal Bauskar reported this to improve performance on ARMv8. aligned_malloc(): Wrapper for the Microsoft _aligned_malloc() and the ISO/IEC 9899:2011 <stdlib.h> aligned_alloc(). Note: The parameters are in the Microsoft order (size, alignment), opposite of aligned_alloc(alignment, size). Note: The standard defines that size must be an integer multiple of alignment. It is enforced by AddressSanitizer but not by GNU libc on Linux. aligned_free(): Wrapper for the Microsoft _aligned_free() and the standard free(). HAVE_ALIGNED_ALLOC: A new test. Unfortunately, support for aligned_alloc() may still be missing on some platforms. We will fall back to posix_memalign() for those cases. HAVE_MEMALIGN: Remove, along with any use of the nonstandard memalign(). PFS_ALIGNEMENT (sic): Removed; we will use CPU_LEVEL1_DCACHE_LINESIZE. PFS_ALIGNED: Defined using the C++11 keyword alignas. buf_pool_t::page_hash_table::create(), lock_sys_t::hash_table::create(): lock_sys_t::hash_table::resize(): Pad the allocation size to an integer multiple of the alignment. Reviewed by: Vladislav Vaintroub
| | | * MDEV-28870 InnoDB: Missing FILE_CREATE, FILE_DELETE or FILE_MODIFY before ↵Marko Mäkelä2022-06-215-263/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FILE_CHECKPOINT There was a race condition between log_checkpoint_low() and deleting or renaming data files. The scenario is as follows: 1. The buffer pool does not contain dirty pages. 2. A FILE_DELETE or FILE_RENAME record is written. 3. The checkpoint LSN will be moved ahead of the write of the record. 4. The server is killed before the file is actually renamed or deleted. We will prevent this race condition by ensuring that a log checkpoint cannot occur between the durable write and the file system operation: 1. Durably write the FILE_DELETE or FILE_RENAME record. 2. Perform the file system operation. 3. Allow any log checkpoint to proceed. mtr_t::commit_file(): Implement the DELETE or RENAME logic. fil_delete_tablespace(): Delegate some of the logic to mtr_t::commit_file(). fil_space_t::rename(): Delegate some logic to mtr_t::commit_file(). Remove the debug injection point fil_rename_tablespace_failure_2 because we do test RENAME failures without any debug injection. fil_name_write_rename_low(), fil_name_write_rename(): Remove. Tested by Matthias Leich
| | | * MDEV-28845 fixup: Prevent an infinite loopMarko Mäkelä2022-06-211-0/+1
| | | | | | | | | | | | | | | | | | | | buf_page_create_low(): Before retrying, release the exclusive page latch in order to prevent an infinite loop in buf_pool_t::corrupted_evict().
| | | * MDEV-28782 fixup: ./mtr --embeddedMarko Mäkelä2022-06-211-0/+17
| | | |
| | | * MDEV-28782 mariadb-tzinfo-to-sql to work in bootstrap modeDaniel Black2022-06-184-24/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Work around MDEV-28718 for now, but also optimize the interation of information_schema.SYSTEM_VARIABLES. Add test case to show that tzinfo data into bootstrap is desired functionality. Bug report thanks to Dan Lenski of AWS.
| | * | fix spider.variable_deprecation testSergei Golubchik2022-06-162-62/+76
| | | |
| | * | re-enable innodb.innodb_page_compressed testsSergei Golubchik2022-06-161-0/+5
| | | |
* | | | MDEV-28819 Statically compiled encryption plugins do not workVladislav Vaintroub2022-06-201-1/+2
| | | | | | | | | | | | | | | | Disable building hashicorp encryption plugin statically
* | | | Merge 10.8 into 10.9Marko Mäkelä2022-06-201-6/+3
|\ \ \ \ | |/ / /
| * | | MDEV-28879 Assertion `l->lsn <= log_sys.get_lsn()' failed around ↵Marko Mäkelä2022-06-201-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recv_recover_page recv_recover_page(): Correct a debug assertion to refer to recv_sys.lsn, which may be ahead of log_sys.lsn during non-final recovery batches. In commit 685d958e38b825ad9829be311f26729cccf37c46 (MDEV-14425) when some redundant LSN fields were removed, log_sys.log.scanned_lsn had been replaced with a reference to log_sys.lsn instead of the more appropriate recv_sys.lsn. recv_scan_log(): Remove a redundant call to log_sys.set_recovered_lsn(). It suffices to adjust the log_sys.lsn after parsing (and before starting to apply) records for the last batch. Note: Normally, log_sys.lsn must be the latest log sequence number. Before the final recovery batch, this may be safely violated, because log_write_up_to() will be a no-op. That function will be invoked by the buf_flush_page_cleaner thread to initiate writes of recovered pages.
* | | | Fix building the Hashicorp plugin on OpenBSD / NetBSD and DragonFlyBSDBrad Smith2022-06-181-1/+1
| | | |
* | | | Merge 10.8 into 10.9Marko Mäkelä2022-06-176-17/+38
|\ \ \ \ | |/ / /
| * | | Merge 10.7 into 10.8Marko Mäkelä2022-06-166-17/+38
| |\ \ \ | | |/ /
| | * | Merge 10.6 into 10.7Marko Mäkelä2022-06-166-25/+42
| | |\ \ | | | |/
| | | * Merge 10.5 into 10.6Marko Mäkelä2022-06-161-19/+19
| | | |\
| | | | * MDEV-28832 infinite loop in mariabackup if log LOG_HEADER_FORMAT field is 0Vlad Lesin2022-06-151-19/+19
| | | | | | | | | | | | | | | | | | | | Avoid the loop with getting rid of back and forth jumping.
| | | * | MDEV-28864 Assertion `trx_id <= create_id' failed in innodb_check_version()Marko Mäkelä2022-06-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ha_innobase::prepare_inplace_alter_table(): If the ALTER TABLE operation is no-op for InnoDB, do reset m_prebuilt->trx_id so that ha_innobase::table_version() will always report either 0 or the identifier of the transaction that would commit changes to the InnoDB data dictionary. The failure scenario involved a completed DROP INDEX followed by a no-op ALTER TABLE during which the server was killed. An effort to create a reproducible test failed.
| | | * | MDEV-28845 InnoDB: Failing assertion: bpage->can_relocate() in buf0lru.ccMarko Mäkelä2022-06-154-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 0b47c126e31cddda1e94588799599e138400bcf8 (MDEV-13542) we treat all-zero pages as corrupted ones. During a stress test, a read-ahead of an all-zero page was triggered and the page read was completed concurrently with buf_page_create_low(). This caused the assertion to fail, because buf_page_create_low() was waiting for the page latch. buf_page_get_low(): Only invoke buf_pool_t::corrupted_evict() if the block was not already marked as corrupted. buf_page_create_low(): On page identifier mismatch, retry the buf_pool.page_hash lookup. buf_pool_t::corrupted_evict(): Set the state of the block to FREED so that a concurrent buf_page_get_low() will refuse to load the page. Wait for the page latch to be vacant before proceeding to remove the block from buf_pool.page_hash and buf_pool.LRU. page_id_t::set_corrupted(), page_id_t::is_corrupted(): Accessors for indicating a corrupted page identifier. Tested by Matthias Leich
| | | * | MDEV-13542 fixup: Relax an assertionMarko Mäkelä2022-06-151-0/+1
| | | | |
* | | | | fix sporadic versioning.rpl_row failuresSergei Golubchik2022-06-161-0/+1
| | | | |
* | | | | fixes for aarch64 debSergei Golubchik2022-06-161-0/+4
| | | | |
* | | | | deb: fix hashicorp plugin dependenciesSergei Golubchik2022-06-161-1/+1
| | | | |
* | | | | MDEV-28769 Assertion `(m_ci->state & 32) || m_with_collate' failed in ↵Alexander Barkov2022-06-1613-78/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lex_exact_charset_opt_extended_collate::Lex_exact_charset_opt_extended_collate on SET NAMES These system variables: @@character_set_client @@character_set_connection @@character_set_database @@character_set_filesystem @@character_set_results @@character_set_server can now be set in numeric format only to IDs of default collations, e.g.: SET @@character_set_xxx=9; -- OK (latin2_general_ci is default) SET @@character_set_xxx=2; -- ERROR (latin2_czech_cs is not default) SET @@character_set_xxx=21; -- ERROR (latin2_hungarian_ci is not default) Before this change the server accepted IDs of non-default collations so all three examples above worked without errors, but this could lead to unexpected behavior in later statements.
* | | | | Merge 10.8 into 10.9Marko Mäkelä2022-06-1536-612/+390
|\ \ \ \ \ | |/ / / /
| * | | | MDEV-28766: SET GLOBAL innodb_log_file_bufferingMarko Mäkelä2022-06-146-38/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit c4c88307091cb16886562e9e7b77f5fd077d34b5 (MDEV-28111) we disabled the file system cache on the InnoDB write-ahead log file (ib_logfile0) by default on Linux. It turns out that especially with innodb_flush_trx_log_at_commit=2, writing to the log via the file system cache typically improves throughput, especially on slow storage or at a small number of concurrent transactions. For other values of innodb_flush_log_at_trx_commit, direct writes were observed to be mostly but not always faster. Whether it pays off to disable the file system cache on the log may depend on the type of storage, the workload, and the operating system kernel version. On Linux and Microsoft Windows, we will introduce the settable Boolean global variable innodb_log_file_buffering that indicates whether the file system cache on the redo log file is enabled. The default value is innodb_log_file_buffering=OFF. If the server is started up with innodb_flush_log_at_trx_commit=2, the value will be changed to innodb_log_file_buffering=ON. When a persistent memory interface is being used for the log, the value cannot be changed from innodb_log_file_buffering=OFF. On Linux, when the physical block size cannot be determined to be a power of 2 between 64 and 4096 bytes, the file system cache cannot be disabled, and innodb_log_file_buffering=ON cannot be changed. Server log messages will indicate whether the file system cache is enabled for the redo log: [Note] InnoDB: Buffered log writes (block size=512 bytes) [Note] InnoDB: File system buffers for log disabled (block size=512 bytes) After this change, the startup parameter innodb_flush_method will no longer control whether O_DIRECT will be set on the redo log on Linux. On other operating systems that support O_DIRECT, no interface has been implemented for controlling the file system cache for the redo log. The innodb_flush_method values O_DIRECT, O_DIRECT_NO_FSYNC, O_DSYNC will enable O_DIRECT for data files, not the log. Tested by: Matthias Leich, Axel Schwenke
| * | | | Merge 10.7 into 10.8Marko Mäkelä2022-06-1431-570/+279
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.6 into 10.7Marko Mäkelä2022-06-145-135/+4
| | |\ \ \ | | | |/ /
| | | * | MDEV-28840 innodb_undo_log_truncate is not crash-safeMarko Mäkelä2022-06-143-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trx_purge_free_segment(): Do mark that the block will be modified. It seems possible that this regression was introduced by the changes to the page-freeing logic in commit 4179f93d28035ea2798cb1c16feeaaef87ab4775 (MDEV-18976). Tested by: Matthias Leich
| | | * | MDEV-25581 Allow user thread to do InnoDB fts cache syncThirunarayanan Balathandayuthapani2022-06-142-132/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - innodb_fts.sync_block doesn't make sense after MDEV-25581's patch because fts cache syncing is done as a part of insert operation and it leads to completion of select over insert sometimes. This test case is not relevant any more
| | * | | Merge 10.6 into 10.7Marko Mäkelä2022-06-1424-434/+271
| | |\ \ \ | | | |/ /
| | | * | Merge 10.5 into 10.6Marko Mäkelä2022-06-149-30/+140
| | | |\ \ | | | | |/
| | | | * MDEV-28828 SIGSEGV in buf_flush_LRU_list_batchMarko Mäkelä2022-06-141-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 73fee39ea62037780c59161507e89dd76c10b7a3 (MDEV-27985) a regression was introduced that would cause bpage=nullptr to be referenced. buf_flush_LRU_list_batch(): Always terminate the loop upon encountering a null pointer.
| | | | * MDEV-26127 Assertion `err != DB_DUPLICATE_KEY' failed or InnoDB: Failing ↵Nayuta Yanagisawa2022-06-135-9/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assertion: id != 0 on ALTER ... REBUILD PARTITION During rebuild of partition, the partitioning engine calls alter_close_table(), which does not unlock and close some table instances of the target table. Then, the engine fails to rename partitions because there are table instances that are still locked. Closing all the table instance of the target table fixes the bug.
| | | | * MDEV-28642: Suspend obvious false-positive Lintian warningsTuukka Pasanen2022-06-133-20/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MariaDB codebase is huge and Lintian has lots of test than can fire false-positive warnings which leads to situation where real problems can't be spotted. Suspend obvious false-positive Lintian warnings and let Lintian problems that needs some love shine out. Suspends in package mariadb-test-data Supporting BSD family needs to use '/usr/bin/env perl' and not '/usr/bin/perl' Perl script are for testing and not for production in mariadb-test-data package: * incorrect-path-for-interpreter There is several files with national-encoding which are test file so they can't be in unicode charset * national-encoding Serveral test paths are intentionally repeated: * repeated-path-segment Suspends in package mariadb-test Supporting BSD family needs to use '/usr/bin/env perl' and not '/usr/bin/perl' Perl script are for testing and not for production in mariadb-test-data package: * incorrect-path-for-interpreter Suspends in package source package Remade some 'version-substvar-for-external-package' to use regex. MGroonga is missing source file 'jquery-ui-1.8.18.custom.js' correct lintian suspend with regex: * source-is-missing There is several files with very long line lenghts. Add suspends for those that can't be corrected in several places. Most of them are test result files, SQL test files or intentional long lines that can't be splitted. * very-long-line-length-in-source-file There is several autogenerated C++ files which probably should not be there but they should not do any harm: * source-contains-autogenerated-visual-c++-file
| | | * | MDEV-28802 DROP DATABASE in InnoDB still is case-insensitiveMarko Mäkelä2022-06-133-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | innodb_drop_database(): Use explicit TO_BINARY casts on SYS_TABLES.NAME, which for historical reasons uses the wrong collation latin1_swedish_ci instead of BINARY.
| | | * | Update magic file with Aria table files and ddl logMonty2022-06-131-14/+14
| | | | |
| | | * | MDEV-25581 Allow user thread to do InnoDB fts cache syncThirunarayanan Balathandayuthapani2022-06-1011-395/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: ======== InnoDB FTS requesting the fts sync of the table once the fts cache size reaches 1/10 of innodb_ft_cache_size. But fts_sync() releases cache lock when writing the word. By doing this, InnoDB insert thread increases the innodb fts cache memory and SYNC operation will take more time to complete. Solution: ========= Remove the fts sync operation(FTS_MSG_SYNC_TABLE) from the fts optimize background thread. Instead of that, allow user thread to sync the InnoDB fts cache when the cache size exceeds 512 kb. User thread holds cache lock while doing cache syncing, it make sure that other threads doesn't add the docs into the cache. Removed FTS_MSG_SYNC_TABLE and its related function because we do remove the FTS_MSG_SYNC_TABLE message itself. Removed fts_sync_index_check() and all related function because other threads doesn't add while cache operation going on.
| | | * | Fix ./mtr --embeddedMarko Mäkelä2022-06-104-5/+8
| | | | | | | | | | | | | | | | | | | | This fixes up commit 3d241eb948855dbe0688a04c8111cc78deac3c1c
| | * | | Fixed maria.maria-recover and maria.encrypt-no-key test filesMonty2022-06-134-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | These had been damaged during some merge which caused --embedded test to fail
* | | | | Make BUILD script compile hashicorp plugin dynamicallybb-10.9-montyMonty2022-06-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compiling hashicorp plugin statically got many InnoDB encryption test to fail with errors like: Error: InnoDB: The page [page id: space=5, page number=3] in file './test/t1.ibd' cannot be decrypted.
* | | | | Merge 10.8 into 10.9Marko Mäkelä2022-06-09133-1302/+1620
|\ \ \ \ \ | |/ / / /
| * | | | MDEV-26713 fixup: Correct the main.winservice_i18n resultMarko Mäkelä2022-06-091-1/+0
| | | | |
| * | | | Merge 10.7 into 10.8Marko Mäkelä2022-06-09127-1106/+1257
| |\ \ \ \ | | |/ / /
| | * | | Merge 10.6 into 10.7Marko Mäkelä2022-06-09126-1095/+1246
| | |\ \ \ | | | |/ /
| | | * | Merge 10.5 into 10.6Marko Mäkelä2022-06-0945-102/+122
| | | |\ \ | | | | |/