summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-18565: Galera mtr-suite fails if galera library is not installed (#1243)sysprg2019-07-0920-140/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MDEV-18565: Galera mtr-suite fails if galera library is not installed Currently, running mtr with an incorrect (for example, new or obsolete) version of wsrep_provider (for example, with the 26 version of libgalera_smm.so) leads to the failure of tests in several suites with vague error diagnostics. As for the galera_3nodes suite, the mtr also does not effectively check all the prerequisites after merge with MDEV-18426 fixes. For example, tests that using mariabackup do not check for presence of ss and socat/nc. This is due to improper handling of relative paths in mtr scripts. In addition, some tests in different suites can be run without setting the environment variables such as MTR_GALERA_TFMT, XBSTREAM, and so on. To eliminate all these issues, this patch makes the following changes: 1. Added auxiliary wsrep_mtr_check utility (which located in the mysql-test/lib/My/SafeProcess subdirectory), which compares the versions of the wsrep API that used by the server and by the wsrep provider library, and it does this comparison safely, without accessing the API if the versions do not match. 2. All checks related to the presence of mariabackup and utilities that necessary for its operation transferred from the local directories of different mtr suites (from the suite.pm files) to the main suite.pm file. This not only reduces the amount of code and eliminates duplication of identical code fragments, but also avoids problems due to the inability of mtr to consider relative paths to include files when checking skip combinations. 3. Setting the values of auxiliary environment variables that are necessary for Galera, SST scripts and mariabackup (to work properly) is moved to the main mysql-test-run.pl script, so as not to duplicate this code in different suites, and to avoid partial corrections of the same errors for different suites (while other suites remain uncorrected). 4. Fixed duplication of the have_file_key_management.inc and have_filekeymanagement.inc files between different suites, these checks are also transferred to the top level. https://jira.mariadb.org/browse/MDEV-18565 * Build without additional utility in configurations without wsrep support
* MDEV-19936: MyRocks: compile fails on WindowsSergei Petrunia2019-07-031-12/+13
| | | | | Part#2: Remove other unneeded files which cause compile warnings-treated-as-errors errors on Windows.
* MDEV-19936: MyRocks: compile fails on WindowsSergei Petrunia2019-07-031-2/+4
| | | | | | Don't compile table/mock_table.cc (pushing this patch to 10.3 first to make sure it fixes the issue will push to 10.2, too)
* Merge 10.2 into 10.3Marko Mäkelä2019-07-022-2/+3
|\
| * MDEV-19869: Correct the logic, and avoid type mismatchMarko Mäkelä2019-07-021-6/+5
| |
| * MDEV-19781: Skip the test for embedded serverMarko Mäkelä2019-07-021-0/+1
| |
* | Merge 10.2 into 10.3Marko Mäkelä2019-07-02320-7597/+23176
|\ \ | |/
| * MDEV-12626: Import innodb_buffer_pool_dump_pct adjusted for MDEV-11454Marko Mäkelä2019-07-022-0/+121
| |
| * MDEV-13626: Import and adjust innodb.blob-crashMarko Mäkelä2019-07-023-1/+358
| |
| * MDEV-19781 Add page id matching check in innochecksum toolThirunarayanan Balathandayuthapani2019-07-011-0/+1
| | | | | | | | | | - Changed the assert to ignore SRV_LOG_SPACE_FIRST_ID. Post push fix to address the previous commit failure.
| * MDEV-19781 Add page id matching check in innochecksum toolThirunarayanan Balathandayuthapani2019-07-011-13/+3
| | | | | | | | | | Changed the debug insert inside fil_io() to check whether it writes the page to wrong offset only for user tablespace.
| * MDEV-17228 Encrypted temporary tables are not encryptedThirunarayanan Balathandayuthapani2019-07-011-2/+4
| | | | | | | | | | - log_crypt_init() should be called from create_log_files(). Because it should re-create the new random nonce compared to the old ones.
| * MDEV-19766: Disable page dump output in debug buildsMarko Mäkelä2019-07-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test innodb.leaf_page_corrupted_during_recovery fails on buildbot with Warning 1406 Data too long for column 'line' at row 10 line len 16384; hex ... because of a page dumps that InnoDB is generating for a corrupted page Since this test is using debug instrumentation, we will solve the issue by disabling page dumps in debug builds altogether. Users of debug builds will likely know how to extract page dumps in other means. Page dump output could sometimes be useful when diagnosing problems that users are facing. Hence we will keep the page dump output in non-debug (release) builds.
| * MDEV-19914 Server startup fails while dropping garbage encrypted tablespace ↵Thirunarayanan Balathandayuthapani2019-07-012-1/+3
| | | | | | | | | | | | | | if innodb_encryption_threads > 0 - Avoiding accessing encryption thread mutex before initiating the encryption threads
| * MDEV-19869 Port innodb_fts.fulltext2 from mysql to mariadb.Thirunarayanan Balathandayuthapani2019-07-013-19/+71
| | | | | | | | | | | | - Ported mysql Bug#20597981 test case to mariadb-10.2 - InnoDB never used fts_doc_id_in_read_set. Basically it tells innodb to read the fts_doc_id from the index record itself.
| * MDEV-17228 Encrypted temporary tables are not encryptedThirunarayanan Balathandayuthapani2019-06-2819-72/+280
| | | | | | | | | | | | | | | | | | | | | | | | - Introduce a new variable called innodb_encrypt_temporary_tables which is a boolean variable. It decides whether to encrypt the temporary tablespace. - Encrypts the temporary tablespace based on full checksum format. - Introduced a new counter to track encrypted and decrypted temporary tablespace pages. - Warnings issued if temporary table creation has conflict value with innodb_encrypt_temporary_tables - Added a new test case which reads and writes the pages from/to temporary tablespace.
| * MDEV-19781 Add page id matching check in innochecksum toolThirunarayanan Balathandayuthapani2019-06-286-15/+163
| | | | | | | | | | | | | | | | Added the condition in innochecksum tool to check page id mismatch. This could catch the write corruption caused by InnoDB. Added the debug insert inside fil_io() to check whether it writes the page to wrong offset.
| * MDEV-14996 kill during FLUSH TABLES FOR EXPORT causes assertMonty2019-06-273-1/+28
| |
| * MDEV-19893 Do not send error packets with seqno= 0Vladislav Vaintroub2019-06-271-0/+11
| |
| * MDEV-19889 In CMakeLists.txt, use ${CMAKE_CPACK_COMMAND},rather than just cpackVladislav Vaintroub2019-06-271-2/+2
| |
| * MDEV-19886 InnoDB returns misleading ER_NO_SUCH_TABLE_IN_ENGINEMarko Mäkelä2019-06-279-30/+74
| | | | | | | | | | A fix in MySQL 5.7.6 was not completely merged to MariaDB: Bug#19419026 WHEN A TABLESPACE IS NOT FOUND, DO NOT REPORT "TABLE NOT FOUND"
| * MDEV-19865: AddressSanitizer error in open_or_create_log_file() in mariabackupVlad Lesin2019-06-261-1/+1
| | | | | | | | Decrease array on stack in open_or_create_log_file() to avoid stack overflow.
| * MDEV-17576 Assertion in maria_extra upon ALTER on table with triggers and locksMonty2019-06-253-5/+31
| | | | | | | | | | | | | | | | | | The problem was that the code in maria_extra assumed that there could be only one table open when doing maria_extra(MA_FORCE_REOPEN) However in the case of triggers, there can be multiple copies of the table open. Fixed by removing assert.
| * Remove the stray test innodb_zip.16kMarko Mäkelä2019-06-251-721/+0
| | | | | | | | This was accidentally broken in the parent commit.
| * Replace innodb_zip.16k with innodb_zip.page_sizeMarko Mäkelä2019-06-2415-1976/+2188
| | | | | | | | | | | | | | | | Also, move part of the test back to innodb.innodb_mysql and another part to a new test innodb.purge. Last but not least, merge the tests innodb_zip.4k and innodb_zip.8k to innodb_zip.page_size.
| * Remove the unused function maria_cloneMarko Mäkelä2019-06-242-16/+2
| |
| * Merge 10.1 into 10.2Eugene Kosov2019-06-2319-71/+381
| |\
| | * Merge 5.5 into 10.1Eugene Kosov2019-06-207-23/+231
| | |\
| | | * MDEV-19531 Add colors to mtrEugene Kosov2019-06-191-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | Colors possibility auto detected. [ such ] stuff is colored. Patch by Sergei Golubchik
| | | * MDEV-19790 Wrong result for query with outer join and IS NOT TRUE predicateIgor Babaev2019-06-174-3/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in where clause The classes Item_func_isnottrue and Item_func_isnotfalse inherited the implementation of the eval_not_null_tables method from the Item_func class. As a result the not_null_tables_cache was set incorrectly for the objects of these classes. It led to improper conversion of outer joins to inner joins when the where clause of the processed query contained IS NOT TRUE or IS NOT FALSE predicates. The coverted query in many cases produced a wrong result set.
| | | * MDEV-13631 Make use of clang-formatEugene Kosov2019-06-122-22/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Explicitly mention every options in .clang-format to protect us from possible future changes. Remove separate InnoDB style. Change style to look more like this script: for x in $@ do indent -kr -bl -bli0 -l79 -i2 -nut -c48 -dj -cp0 $x sed -ri -e 's/ = /= /g'\ -e '/switch.*\)$/{N;s/\n[ ]+/ /}' $x done Significant different is that 'switch' and '{' are put on different lines because it's impossible in clang-format to set formatting rules just for 'switch' statement.
| | * | MDEV-18328: Make DISKS plugin check some privilege to access ↵Oleksandr Byelkin2019-06-193-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | information_schema.DISKS table Check FILE privelege.
| | * | MDEV-18661 loading the audit plugin causes performance regression.Alexey Botchkov2019-06-159-47/+97
| | | | | | | | | | | | | | | | | | | | | | | | Plugin fixed to not lock the LOCK_operations when not active. Server fixed to lock the LOCK_plugin less - do it once per thread and then only if a plugin was installed/uninstalled.
| * | | Merge branch '10.2' of github.com:MariaDB/server into 10.2Sergei Petrunia2019-06-212-1/+11
| |\ \ \
| | * | | MDEV-19821 "perl;" snippet must run the same perl executable that runs mtr.Vladislav Vaintroub2019-06-212-1/+11
| | | | |
| * | | | Merge branch 'bb-10.2-myrocks-merge' into 10.2Sergei Petrunia2019-06-21230-5241/+20003
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | Fix tests: some build hosts have ramdisk in /run/shm instead of /dev/shmbb-10.2-myrocks-mergeSergei Petrunia2019-06-201-2/+3
| | | | |
| | * | | Update test resultsSergei Petrunia2019-06-201-2/+0
| | | | |
| | * | | MyRocks: dont show read-Free replication variablesSergei Petrunia2019-06-204-4/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MariaDB doesn't support Read-Free replication, so showing them only causes confusion. Removed variables: - @@rocksdb_read_free_rpl - @@rocksdb_read_free_rpl_tables
| | * | | Fix typoSergei Petrunia2019-06-161-1/+1
| | | | |
| | * | | Post-merge build fixesSergei Petrunia2019-06-162-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Don't add DZSTD_STATIC_LINKING_ONLY - Don't use upstream's way of linking with Jemalloc (MyRocks/MariaDB has its own in build_rocksdb.cmake) - Don't depend on libunwind
| | * | | More Post-merge fixesSergei Petrunia2019-06-162-2/+3
| | | | |
| | * | | Post-merge fixes cont'dSergei Petrunia2019-06-162-5/+11
| | | | |
| | * | | Post-merge fixes: fix rocksdb.tbl_opt_data_index_dirSergei Petrunia2019-06-162-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | MariaDB generates both errors and warnings. Warnings are not normally visible when errors are also produced.
| | * | | Post-merge fixes: rocksdb.bloomfilter3, use_direct_io_for_flush_and_compactionSergei Petrunia2019-06-163-4/+32
| | | | |
| | * | | Post-merge fixes: fix linking on WindowsSergei Petrunia2019-06-161-1/+2
| | | | |
| | * | | Post-merge fix: fix compilation on WindowsSergei Petrunia2019-06-161-1/+1
| | | | |
| | * | | Trivial test result update after fix for MDEV-19771Sergei Petrunia2019-06-161-4/+4
| | | | |
| | * | | Post-merge fixesSergei Petrunia2019-06-1619-31/+1670
| | | | |
| | * | | Post-merge fix: MariaDB doesn't have I_S.PROCESSLIST.SRV_IDSergei Petrunia2019-06-167-7/+7
| | | | |