summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-12600: crash during install_db with innodb_page_size=32K and ibdata1=3M;bb-10.1-MDEV-12113Jan Lindström2017-06-0119-89/+319
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem was that all doublewrite buffer pages must fit to first system datafile. Ported commit 27a34df7882b1f8ed283f22bf83e8bfc523cbfde Author: Shaohua Wang <shaohua.wang@oracle.com> Date: Wed Aug 12 15:55:19 2015 +0800 BUG#21551464 - SEGFAULT WHILE INITIALIZING DATABASE WHEN INNODB_DATA_FILE SIZE IS SMALL To 10.1 (with extended error printout). btr_create(): If ibuf header page allocation fails report error and return FIL_NULL. Similarly if root page allocation fails return a error. dict_build_table_def_step: If fsp_header_init fails return error code. fsp_header_init: returns true if header initialization succeeds and false if not. fseg_create_general: report error if segment or page allocation fails. innobase_init: If first datafile is smaller than 3M and could not contain all doublewrite buffer pages report error and fail to initialize InnoDB plugin. row_truncate_table_for_mysql: report error if fsp header init fails. srv_init_abort: New function to report database initialization errors. srv_undo_tablespaces_init, innobase_start_or_create_for_mysql: If database initialization fails report error and abort. trx_rseg_create: If segment header creation fails return.
* MDEV-12114: install_db shows corruption for rest encryption and ↵Jan Lindström2017-06-0111-117/+1577
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | innodb_checksum_algorithm=strict_none Problem was that checksum check resulted false positives that page is both not encrypted and encryted when checksum_algorithm was strict_none. Encrypton checksum will use only crc32 regardless of setting. buf_zip_decompress: If compression fails report a error message containing the space name if available (not available during import). And note if space could be encrypted. buf_page_get_gen: Do not assert if decompression fails, instead unfix the page and return NULL to upper layer. fil_crypt_calculate_checksum: Use only crc32 method. fil_space_verify_crypt_checksum: Here we need to check crc32, innodb and none method for old datafiles. fil_space_release_for_io: Allow null space. encryption.innodb-compressed-blob is now run with crc32 and none combinations. Note that with none and strict_none method there is not really a way to detect page corruptions and page corruptions after decrypting the page with incorrect key. New test innodb-checksum-algorithm to test different checksum algorithms with encrypted, row compressed and page compressed tables.
* MDEV-12113: install_db shows corruption for rest encryption with ↵Jan Lindström2017-06-0118-605/+558
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | innodb_data_file_path=ibdata1:3M; Problem was that FIL_PAGE_FLUSH_LSN_OR_KEY_VERSION field that for encrypted pages even in system datafiles should contain key_version except very first page (0:0) is after encryption overwritten with flush lsn. Ported WL#7990 Repurpose FIL_PAGE_FLUSH_LSN to 10.1 The field FIL_PAGE_FLUSH_LSN_OR_KEY_VERSION is consulted during InnoDB startup. At startup, InnoDB reads the FIL_PAGE_FLUSH_LSN_OR_KEY_VERSION from the first page of each file in the InnoDB system tablespace. If there are multiple files, the minimum and maximum LSN can differ. These numbers are passed to InnoDB startup. Having the number in other files than the first file of the InnoDB system tablespace is not providing much additional value. It is conflicting with other use of the field, such as on InnoDB R-tree index pages and encryption key_version. This worklog will stop writing FIL_PAGE_FLUSH_LSN_OR_KEY_VERSION to other files than the first file of the InnoDB system tablespace (page number 0:0) when system tablespace is encrypted. If tablespace is not encrypted we continue writing FIL_PAGE_FLUSH_LSN_OR_KEY_VERSION to all first pages of system tablespace to avoid unnecessary warnings on downgrade. open_or_create_data_files(): pass only one flushed_lsn parameter xb_load_tablespaces(): pass only one flushed_lsn parameter. buf_page_create(): Improve comment about where FIL_PAGE_FIL_FLUSH_LSN_OR_KEY_VERSION is set. fil_write_flushed_lsn(): A new function, merged from fil_write_lsn_and_arch_no_to_file() and fil_write_flushed_lsn_to_data_files(). Only write to the first page of the system tablespace (page 0:0) if tablespace is encrypted, or write all first pages of system tablespace and invoke fil_flush_file_spaces(FIL_TYPE_TABLESPACE) afterwards. fil_read_first_page(): read flush_lsn and crypt_data only from first datafile. fil_open_single_table_tablespace(): Remove output of LSN, because it was only valid for the system tablespace and the undo tablespaces, not user tablespaces. fil_validate_single_table_tablespace(): Remove output of LSN. checkpoint_now_set(): Use fil_write_flushed_lsn and output a error if operation fails. Remove lsn variable from fsp_open_info. recv_recovery_from_checkpoint_start(): Remove unnecessary second flush_lsn parameter. log_empty_and_mark_files_at_shutdown(): Use fil_writte_flushed_lsn and output error if it fails. open_or_create_data_files(): Pass only one flushed_lsn variable.
* bump the VERSIONDaniel Bartholomew2017-05-311-1/+1
|
* cleanup: remove Regexp_processor_pcre::m_subpatterns_neededSergei Golubchik2017-05-293-9/+6
| | | | it's unused now.
* MDEV-12942 REGEXP_INSTR returns 1 when using bracketsSergei Golubchik2017-05-293-2/+18
| | | | | always use full m_SubStrVec length in pcre_exec, we don't know how many subexpressions user's regexp will have
* Fixed the bug mdev-12931.mariadb-10.1.24Igor Babaev2017-05-293-1/+76
| | | | | | This corrects the patch for mdev-10006. The current code supports only those semi-join nests that are placed at the join top level. So such nests cannot depend on other tables or nests.
* MDEV-11196: Error:Run-Time Check Failure #2 - Stack around the variable ↵bb-mdev-12229Varun Gupta2017-05-283-1/+170
| | | | | | | | 'key_buff' was corrupted, server crashes in opt_sum_query Extended keys feature disabled if the length of extended key is longer than MAX_KEY_LEN
* Merge branch '10.0-galera' into 10.1Sergei Golubchik2017-05-2617-22/+126
|\
| * Fix galera tests part II(Fix previous commit)Sachin Setiya2017-05-082-2/+2
| |
| * Fix galera test failures.Sachin Setiya2017-05-081-1/+1
| |
| * fix warning "ignoring return value" of fwrite.Jan Lindström2017-04-051-1/+5
| | | | | | | | | | | | Merge pull request https://github.com/MariaDB/server/pull/343 contributed by Eric Herman.
| * Fix compiler warnings on gcc 6.x.Jan Lindström2017-04-053-4/+4
| |
| * Merge pull request #351 from ↵Jan Lindström2017-04-051-4/+22
| |\ | | | | | | | | | | | | grooverdan/10.0-galera-MDEV-7560-check_galera_version MDEV-7560: check_galera_version to account for greater version than specified
| | * MDEV-7560: check_galera_version to account for greater version than specifiedDaniel Black2017-04-051-4/+22
| |/ | | | | | | Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
| * Fix galera.galera_gcs_fc_limitSachin Setiya2017-03-231-1/+4
| |
| * MDEV-12319 Part 2Sachin Setiya2017-03-231-0/+2
| | | | | | | | | | | | Add more tests to disabled.diff Signed-off-by: Sachin Setiya <sachin.setiya@mariadb.com>
| * bump the VERSIONDaniel Bartholomew2017-03-221-1/+1
| |
| * MDEV-12319 Test added to disabled.defSachin Setiya2017-03-221-0/+11
| |
| * Fix galera_admin testmariadb-galera-10.0.30Sachin Setiya2017-03-211-2/+2
| | | | | | | | Patch credit Jan
| * Fix failure on galera_toi_drop_database test.Jan Lindström2017-03-212-4/+4
| | | | | | | | | | | | | | It is assumed that both insert..select statements take so long that drop database from node2 gets to abort them both but on fast machines it was too small. Increased the size of insert.
| * Fix mysqlhotcopy test failuresSachin Setiya2017-03-211-1/+1
| | | | | | | | Signed-off-by: Sachin Setiya <sachin.setiya@mariadb.com>
| * Change VERSION no to 30Sachin Setiya2017-03-201-1/+1
| |
| * Merge branch '10.0' into bb-10.0-galeraSachin Setiya2017-03-2050-668/+680
| |\
| * | Fixed test failure on galere_wsrep_log_conflicts on XtraDB.Jan Lindström2017-03-206-11/+144
| | | | | | | | | | | | | | | | | | | | | Problem was that trx_sys->mutex was acquired to print trx info even when we already hold trx_sys->mutex. Fixed similarly as in InnoDB, i.e. with wsrep_trx_print_locking() function that does not acquire trx_sys->mutex.
| * | Merge tag 'mariadb-10.0.30' into bb-sachin-10.0-galera-mergeSachin Setiya2017-03-17487-7437/+14212
| |\ \ | | | | | | | | | | | | Signed-off-by: Sachin Setiya <sachin.setiya@mariadb.com>
| * | | Fix test casesSachin Setiya2017-03-163-0/+72
| | | | | | | | | | | | | | | | Signed-off-by: Sachin Setiya <sachin.setiya@mariadb.com>
| * | | Fix wsrep_affected_rows.Sachin Setiya2017-03-164-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The value of wsrep_affected_rows were not reseted properly for slave. Now we also wsrep_affected_rows in Xid_log_event::do_apply_event also , apart from THD::cleanup_after_query(). Signed-off-by: Sachin Setiya <sachin.setiya@mariadb.com>
| * | | Fix Some failing testsSachin Setiya2017-03-159-0/+9
| | | | | | | | | | | | | | | | Signed-off-by: Sachin Setiya <sachinsetia1001@gmail.com>
| * | | Bump WSREP_PATCH_VERSION to 19Philip Stoev2017-03-151-1/+1
| | | |
| * | | Galera MTR Tests: do not run innodb.innodb_stats_del_mark and some other ↵Sachin Setiya2017-03-151-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | tests with Galera, as it produces warnings Signed-off-by: Sachin Setiya <sachinsetia1001@gmail.com>
| * | | Galera MTR Tests: Tests for MW-328 Fix unnecessary/silent BF abortsPhilip Stoev2017-03-1412-0/+336
| | | |
| * | | Galera MTR Tests: restore galera_autoinc_sst_xtrabackup.test to use ↵Philip Stoev2017-03-142-4/+3
| | | | | | | | | | | | | | | | xtrabackup SST
| * | | Galera MTR Tests: Stability fix for MW-329Philip Stoev2017-03-143-62/+23
| | | |
| * | | Galera MTR Tests: Test for MW-329 Fix incorrect affected rows count after replayPhilip Stoev2017-03-142-0/+141
| | | |
| * | | Galera MTR Tests: fix variable output in ↵Sachin Setiya2017-03-142-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | galera_as_slave_gtid_replicate_do_db.result Signed-off-by: Sachin Setiya <sachinsetia1001@gmail.com>
| * | | GAL-480 MTR testSachin Setiya2017-03-143-0/+87
| | | |
| * | | Galera MTR Test: Test for MW-28 : Assertion with --wsrep-log-conflictsPhilip Stoev2017-03-143-0/+74
| | | |
| * | | MW-28, codership/mysql-wsrep#28 Fix sync_thread_levels debug assertSachin Setiya2017-03-143-10/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced a new wsrep_trx_print_locking() which may be called under lock_sys->mutex if the trx has locks. Signed-off-by: Sachin Setiya <sachinsetia1001@gmail.com>
| * | | refs: MW-319sjaakola2017-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | * silenced the WSREP_ERROR, this fires for all replication filtered DDL, and is false positive
| * | | Galera MTR tests: Make the mysqlhotcopy tests pass on Ubuntu 16.04Sachin Setiya2017-03-141-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sachin Setiya <sachinsetia1001@gmail.com>
| * | | Bump WSREP_PATCH_VERSION to 18Philip Stoev2017-03-141-1/+1
| | | |
| * | | Galera MTR Tests: stability fix for galera#414.testPhilip Stoev2017-03-141-0/+4
| | | |
| * | | Galera MTR Tests: stability fixesSachin Setiya2017-03-148-74/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove part of galera_var_cluster_address.test that can not be tested reliably * reduce running time for galera_gcache_recover_manytrx.test * Additional wait_conditions for GAL-401.test Signed-off-by: Sachin Setiya <sachinsetia1001@gmail.com>
| * | | Galera MTR Tests: Test for MW-313 Enforce wsrep_max_ws_rows also when binlog ↵Philip Stoev2017-03-143-0/+83
| | | | | | | | | | | | | | | | is enabled
| * | | MW-313 Enforce wsrep_max_ws_rows also when binlog is enabledDaniele Sciascia2017-03-141-7/+9
| | | |
| * | | Galera MTR Tests: MW-305 , re-enable the test for ALTER USERPhilip Stoev2017-03-142-8/+13
| | | |
| * | | Galera MTR Tests: Test for MW-309 - Fix wsrep_max_ws_rows so that it does ↵Philip Stoev2017-03-142-0/+53
| | | | | | | | | | | | | | | | not affect SELECT queries
| * | | Galera MTR tests: Update galera_defaults.result for GAL-360Philip Stoev2017-03-141-1/+1
| | | |
| * | | Galera MTR Tests: Tests for GAL-419 Respect safe_to_bootstrap flag also withSachin Setiya2017-03-144-1/+98
| | | | | | | | | | | | | | | | | | | | | | | | gcomm:// Signed-off-by: Sachin Setiya <sachinsetia1001@gmail.com>