summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-19948 return privileges individually update in 10.2bb-10.2-show_grantsAnel Husakovic2019-07-241-36/+50
|
* List of unstable tests for 10.2.26 releaseElena Stepanova2019-07-241-615/+623
|
* MDEV-14154: Remove ut_time_us()Marko Mäkelä2019-07-2310-107/+43
| | | | | Use microsecond_interval_timer() or my_interval_timer() [in nanoseconds] instead.
* Merge 10.1 into 10.2Marko Mäkelä2019-07-237-62/+12
|\
| * 5.6.44-86.0Marko Mäkelä2019-07-235-42/+4
| |\
| | * Fix PS-5388 (Enable hardware CRC32 under Valgrind)Laurynas Biveinis2019-07-232-38/+0
| |/ | | | | | | | | | | Valgrind started supporting CRC32 instruction starting with version 3.6.1, released in 2011. Thus remove the fallback to software implementation in case running under Valgrind.
| * MDEV-14154: Make ut_time_ms(), ut_time_us() monotonicMarko Mäkelä2019-07-232-22/+6
| | | | | | | | | | | | | | | | | | This is motivated by PS-5221 in percona/percona-server@2817c561fce9e20a83b13272ac45fd333467715d The coarser-precision ut_time() will still refer to the system clock, meaning that bad things can happen if the real time clock is adjusted backwards.
| * MDEV-20127 Merge new release of InnoDB 5.6.45 to 10.1Marko Mäkelä2019-07-234-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | There is one directly applicable change to InnoDB: commit 739f5239f12904247d2a61f9880ea1fafbedc332 in the 5.5 branch will be merged before the next MariaDB releases. Another potentially applicable change will be tracked separately as MDEV-20126. Thus, here we only update the InnoDB version number and do not change anything else.
| * gen_lex_hash: Omit deprecated register keywordsMarko Mäkelä2019-07-231-14/+14
| | | | | | | | This is follow-up to d36c107a6b7f9e9bc9425072f2ac13afd2334069
* | MDEV-17005: Re-enable existing tests for non-debug serverMarko Mäkelä2019-07-224-43/+45
| |
* | Merge 10.1 into 10.2Marko Mäkelä2019-07-226-11/+54
|\ \ | |/
| * MDEV-20102 Phantom InnoDB table remains after interrupted CREATE...SELECTMarko Mäkelä2019-07-228-19/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a regression due to MDEV-16515 that affects some versions in the MariaDB 10.1 server series starting with 10.1.35, and possibly all versions starting with 10.2.17, 10.3.8, and 10.4.0. The idea of MDEV-16515 is to allow DROP TABLE to be interrupted, in case it was stuck due to some concurrent activity. We already made some cases of internal DROP TABLE immune to kill in MDEV-18237, MDEV-16647, MDEV-17470. We must include the cleanup of CREATE TABLE...SELECT in the list of such internal DROP TABLE. ha_innobase::delete_table(): Pass create_failed=true if the current SQL statement is CREATE, so that the table will be dropped. row_drop_table_for_mysql(): If create_failed=true, do not allow the operation to be interrupted.
* | MDEV-17005 ASAN heap-use-after-free in innobase_get_computed_valueNikita Malyavin2019-07-222-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the race between DELETE and INSERT (or other any two operations accessing to the table). What should happen in good case: 1. ALTER TABLE is issued. vc_templ->default_rec is initialized with temporary share's default_fields 2. temporary share is freed, but datadict is still there, with garbage in vc_templ->default_rec 3. DELETE is issued. It is first after ALTER TABLE finished. 4. ha_innobase::open() is called, ib_table->get_ref_count() should be one 5. we reinitialize vc_templ, so no garbage anymore What actually happens: 3. DELETE is issued. 4. ha_innobase::open() is called and ib_table->get_ref_count() is 1 5. INSERT (or SELECT etc.) is issued in parallel 6. ha_innobase::open() is called and ib_table->get_ref_count() is 1 7. we check ib_table->get_ref_count() and it is 2 in both threads when we want reinitialize vc_templ 8. garbage is there Fix: * Do not store pointers to SHARE memory in table dict, copy it instead. * But then we don't need to refresh it each time when refcount=1.
* | MDEV-17005 add debug logs and set up deterministic testNikita Malyavin2019-07-223-9/+58
| |
* | The test for the wsrep_info plugin needs the same flexible wsrep version ↵Julius Goryavsky2019-07-221-18/+3
| | | | | | | | checking as the tests for Galera (continuation of MDEV-18565 task)
* | fix libsepol version detection for SUSESergei Golubchik2019-07-211-2/+3
| |
* | switch to CC 3.1Oleksandr Byelkin2019-07-204-9/+13
| |
* | MDEV#20107: rocksdb.check_ignore_unknown_options fails on OS X againSergei Petrunia2019-07-191-1/+1
| | | | | | | | Make it to work on Windows, too.
* | MDEV#20107: rocksdb.check_ignore_unknown_options fails on OS X againSergei Petrunia2019-07-191-6/+34
| | | | | | | | Rewrite the unportable sed/shell code in Perl.
* | MDEV-19471 Add ASAN-poisoned redzones for mem_heap_tbb-10.2-MDEV-19471-asan-mem_heap_tEugene Kosov2019-07-193-4/+9
| | | | | | | | Store REDZONE_SIZE poined bytes before every allocated chunk of memory
* | Merge 10.1 into 10.2Marko Mäkelä2019-07-191-3/+0
|\ \ | |/
| * Fix innodb-system-table-view for --embeddedMarko Mäkelä2019-07-192-4/+1
| |
* | Remove a conditionally unused declarationMarko Mäkelä2019-07-191-1/+4
| | | | | | | | The embedded server does not HAVE_PSI_STAGE_INTERFACE.
* | MDEV-20097 potential use-after-freeEugene Kosov2019-07-191-0/+1
| | | | | | | | row_merge_read_clustered_index(): fix one more place with buf and merge_buf[i]
* | Merge 10.1 into 10.2Marko Mäkelä2019-07-182-0/+2
|\ \ | |/
| * MDEV-20094: Disable innodb.check_ibd_filesizeMarko Mäkelä2019-07-181-0/+1
| | | | | | | | The results are nondeterministic on MariaDB Server 10.1.
| * MDEV-20097: Also fix XtraDBMarko Mäkelä2019-07-181-0/+1
| |
| * MDEV-20097 potential use-after-freeEugene Kosov2019-07-181-0/+1
| | | | | | | | row_merge_read_clustered_index(): make buf always equals to merge_buf[i]
* | Merge 10.1 into 10.2Marko Mäkelä2019-07-1815-3/+647
|\ \ | |/ | | | | | | MDEV-20094 was filed for the unexpected result differences for the test innodb.check_ibd_filesize.
| * MDEV-13625: Add innodb.check_ibd_filesizeMarko Mäkelä2019-07-186-0/+173
| |
| * MDEV-13625: Adapt the test innodb-system-table-viewMarko Mäkelä2019-07-185-0/+341
| |
| * MDEV-13626: Add the test innodb.trx_id_futureMarko Mäkelä2019-07-182-0/+69
| |
| * MDEV-13625: Add the test innodb.innodb-wl5980-debugMarko Mäkelä2019-07-184-0/+88
| |
* | Fixed dependency checking in some Galera testsJulius Goryavsky2019-07-185-1/+6
| |
* | Merge 10.1 into 10.2Marko Mäkelä2019-07-1815-49/+199
|\ \ | |/
| * MDEV-11154: Write_on_release_cache(log_event.cc) function will not write ↵Sujatha2019-07-153-1/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "COMMIT", if use "mysqlbinlog ... | mysql ..." Problem: ======= Executing command, "mysqlbinlog --read-from-remote-server --host='xx.xx.xx.xx' --port=3306 --user=xxx --password=xxx --database=mysql --to-last-log mysql-bin.000001 --start-position=1098699 --stop-never |mysql -uxxx -pxxx", we found that last data read from remote couldn't commit. Analysis: ======== The purpose of 'Write_on_release_cache' is that the contents of the Cache will automatically be written to a dedicated result file on destruction. Flush operation on the result file is controlled by a flag 'FLUSH_F'. Events which require force flush upon their destruction will have to enable this 'Write_on_release_cache::FLUSH_F'. At present the 'FLUSH_F' flag is defined as an enum as shown below. enum flag { FLUSH_F }; Since 'FLUSH_F' is the first member without initialization it get the default value '0'. Because of this the following flush condition never succeeds. if (m_flags & FLUSH_F) fflush(m_file); At present the file gets flushed only during my_fclose(result_file) operation. When continuous streaming is enabled through --stop-never option it never gets flushed and hence events are not replicated. Fix: === Initialize the enum value to non zero value.
| * MDEV-19978 Page read from tablespace is corruptedThirunarayanan Balathandayuthapani2019-07-112-30/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem: ======= Checksum fields can have value as zero. In that case, InnoDB falsely consider that page should be all zeroes. It leads to wrong detection of page corruption. Solution: ======== Remove the condition that checks if checksum fields are zero then page should be all zeroes.
| * Fix typo open_table_def()Anel Husakovic2019-07-111-3/+3
| |
| * MDEV-9409 workaroundSergei Golubchik2019-07-102-2/+2
| |
| * restore RESTRICT_SYMBOL_EXPORTS(zlib)Sergei Golubchik2019-07-102-12/+2
| | | | | | | | | | | | that was lost in c54271723c6 remove zlib/libxml2 workaround in CONNECT
| * MDEV-19726 MariaDB server or backup RPM install assumes mysql user existsSergei Golubchik2019-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | also get rid of chown: cannot access ‘/var/lib/mysql’: No such file or directory before someone reports a bug that MariaDB server or backup RPM install assumes mysql datadir exists followup for bee24fe1818
| * MDEV-17588 replicate-do filters cause errors when creating filtered-out ↵Sachin2019-07-103-0/+72
| | | | | | | | | | | | tables on master with syntax unsupported on slave Add only test case for MDEV , because MDEV-19653 already fixed the issue.
* | Set the garbd_exe variable to empty string to avoid warning about an ↵Julius Goryavsky2019-07-181-0/+1
| | | | | | | | uninitialized variable when wsrep_provider is not initialized correctly, set to 'none' or when wsrep is switched off
* | MDEV-18565: Galera mtr-suite fails if galera library is not installedJulius Goryavsky2019-07-1719-140/+336
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. 5. Added garbd presence check and garbd path variable. https://jira.mariadb.org/browse/MDEV-18565
* | Disable rocksdb_rpl.rpl_gtid_crash_safe_optimizedSergei Petrunia2019-07-161-0/+1
| | | | | | | | It uses slave_gtid_info=optimized which is not supported in MariaDB
* | Disable rocksdb_rpl.optimize_myrocks_replace_intoSergei Petrunia2019-07-161-0/+1
| | | | | | | | It requires @@enable_blind_replace which MariaDB doesn't support
* | Disable rocksdb.rpl_row_not_foundSergei Petrunia2019-07-161-0/+2
| | | | | | | | It requires slave_exec_mode='SEMI_STRICT'
* | rocksdb.unique_check: attempt to remove race condtitions from the testSergei Petrunia2019-07-162-10/+11
| |
* | Disable rocksdb.force_shutdown, rocksdb.shutdown is fineSergei Petrunia2019-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix this patch (two csets before): Disable rocksdb.shutdown test It was introduced by this patch in fb/mysql-5.6: Author: Yoshinori Matsunobu <yoshinori@fb.com> Date: Mon Jun 10 14:09:28 2019 -0700 Extending SHUTDOWN query to support read_only/aborting Summary: This diff extends SHUTDOWN query to support the following features. - Aborting with any specified exit code (range is 0..255). If nothing is specified or 0 is given, it does default clean shutdown. If 1+ is given, exits with the given error code immediately. This is helpful to shutting down instance even if it is stuck somewhere. MariaDB doesn't support SHUTDOWN statement or have any other way to exit the server process.
* | Fix rocksdb.tbl_opt_data_index_dir on a macSergei Petrunia2019-07-161-0/+4
| | | | | | | | Part #2: also replace error text in SHOW WARNINGS