summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-17151: Galera test failure on galera.galera_var_node_addressbb-10.1-MDEV-17151Jan Lindström2018-09-102-2/+8
| | | | Add wait_conditions to wait expected node contents.
* MDEV-17143: Galera test failure on galera.MW-44Jan Lindström2018-09-093-16/+13
| | | | | Start general log OFF and then truncate mysql.general_log and use proper wait timeouts to make sure it is really empty.
* bump the VERSIONDaniel Bartholomew2018-09-081-1/+1
|
* Add one more wait for truncate in MW-44.Jan Lindström2018-09-082-0/+15
|
* Merge branch 'bb-10.1-release' into 10.1Sergei Golubchik2018-09-07270-195032/+5670
|\
| * remove doubly-installed fileSergei Golubchik2018-09-071-5/+0
| |
| * Updated list of unstable tests for 10.1.36 releasemariadb-10.1.36Elena Stepanova2018-09-071-80/+38
| |
| * Merge branch '10.0-galera' into 10.1Sergei Golubchik2018-09-0719-139/+570
| |\
| | * bump the VERSIONDaniel Bartholomew2018-08-071-1/+1
| | |
| | * Add wsrep.cnfmariadb-galera-10.0.36Jan Lindström2018-08-041-0/+6
| | |
| | * Add galera library dependency directly to test case.Jan Lindström2018-08-032-1/+16
| | |
| | * MariaDB adjustments.Jan Lindström2018-08-032-3/+16
| | |
| | * Also include InnoDB undo tablespaces in rsync sstVasil Dimov2018-08-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | If --innodb-undo-tablespaces is used, then InnoDB stores undo in a separate file(s) which whould also be replicated. This fixes Issue#337 This filter will cause sst failed at applying undo... https://github.com/codership/mysql-wsrep/issues/337
| | * Put one filter per line in wsrep_sst_rsync.shVasil Dimov2018-08-031-2/+8
| | | | | | | | | | | | | | | This way it is more readable and easy to change, also if a new entry is added or one removed, the diff will be easier to read.
| | * galera#505 mtr testmkaruza2018-08-032-0/+22
| | | | | | | | | | | | MTR test for galera#505
| | * codership/galera#501 Check cluster weight in galera_pc_weight testTeemu Ollakka2018-08-032-32/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check that cluster weight have proper values in galera_pc_weight test. Removed sleeps from tests and added condition waits for expected cluster sizes. Replaced galera suspend/resume with gmcast.isolate in order to avoid breaking client connections to server which is isolated from the cluster and to avoid the need to reset wsrep_cluster_address. Re-recorded galera_defaults.
| | * Add missing WSREP(thd) condition and remove unnecessary DBUG_RETURN.Jan Lindström2018-08-021-3/+2
| | |
| | * Merge remote-tracking branch 'origin/5.5-galera' into 10.0-galeraJan Lindström2018-08-026-98/+369
| | |\
| | | * Follow up to previous commit for codership/mysql-wsrep#332mariadb-galera-5.5.61Daniele Sciascia2018-08-021-1/+1
| | | | | | | | | | | | | | | | Fix misplaced `DBUG_RETURN` in `Alter_table_statement::execute`.
| | | * Fix FK constraint violation in applier, after ALTER TABLE ADD FKDaniele Sciascia2018-08-027-119/+380
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding a FK constraint to an existing table (ALTER TABLE ADD FOREIGN KEY) causes the applier to fail, if a concurrent DML statement that violate the new constraint (i.e. a DELETE or UPDATE of record in the parent table). For exmaple, the following scenario causes a crash in the applier: 1. ALTER successfully adds FK constraint in node_1 2. On node_2 is UPDATE is in pre_commit() and has certified successfully 3. ALTER is delivered in node_2 and BF aborts DML 4. Applying UPDATE event causes FK violation in node_1 To avoid this situation it is necessary for UPDATE to fail during certification. And for the UPDATE to fail certfication it is necessary that ALTER appends certification keys for both the child and the parent table. Before this patch, ALTER TABLE ADD FK only appended keys for child table which is ALTERed.
| | | * Merge tag 'mariadb-5.5.61' into 5.5-galeraJan Lindström2018-08-01120-281/+2237
| | | |\
| | | * | bump the VERSIONDaniel Bartholomew2018-05-031-1/+1
| | | | |
| | * | | Merge tag 'mariadb-10.0.36' into 10.0-galeraJan Lindström2018-08-02306-4034/+6741
| | |\ \ \
| | * | | | MDEV-16799: Test wsrep.variables crash at sql_class.cc:639 thd_get_ha_dataJan Lindström2018-07-249-31/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem was that binlog_hton was not initialized fully when needed i.e. when wsrep_on = true.
| | * | | | Fix compile error.Jan Lindström2018-07-191-1/+3
| | | | | |
| | * | | | MDEV-10564: Galera `wsrep_debug` patch logs MySQL user credentialsJan Lindström2018-07-191-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restricted output for CREATE USER, GRANT, REVOKE and SET PASSWORD so that it shows only above keywords but not rest of query i.e. not user or password.
| | * | | | Merge pull request #645 from grooverdan/10.0-wsrep_sst_common_bashismJan Lindström2018-07-191-1/+1
| | |\ \ \ \ | | | | | | | | | | | | | | MDEV-15549 - wsrep_sst_common: fix per shellcheck
| | | * | | | wsrep_sst_common: fix per shellcheckDaniel Black2018-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shellcheck -s sh wsrep_sst_common.sh In wsrep_sst_common.sh line 258: [ -n $3 ] && reval=$3 ^-- SC2070: -n doesn't work with unquoted arguments. Quote or use [[ ]]. ^-- SC2086: Double quote to prevent globbing and word splitting.
| | * | | | | fix galera sst testsSergei Golubchik2018-06-151-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | note that ${A#foo} is $A if there's no prefix foo. That's why galera nodes tried to connect to 127.0.0.1:127.0.0.1 if there was no port in the address Followup for 2b35db5ac4e
| * | | | | | Merge branch '10.1' into bb-10.1-releaseSergei Golubchik2018-09-072-63/+3
| |\ \ \ \ \ \
| * | | | | | | post mergeOleksandr Byelkin2018-09-076-30/+133
| | | | | | | |
| * | | | | | | Merge branch '11.0' into 10.1Oleksandr Byelkin2018-09-06250-194807/+4958
| |\ \ \ \ \ \ \
| | * | | | | | | TokuDB: Don't free P_S instrumented mutexes after exit()Sergei Golubchik2018-09-062-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | don't create static objects that destroy mutexes from destructors, and don't destroy mutexes from .so destructor (on-unload) function. if it happens after exit(), P_S will be long gone by that time this fixes tokudb tests crashing on quantal-amd64
| | * | | | | | | Merge branch 'merge-tokudb-5.6' into 10.0Oleksandr Byelkin2018-09-06192-194538/+3936
| | |\ \ \ \ \ \ \
| | | * | | | | | | 5.6.41-84.1Oleksandr Byelkin2018-09-03187-194538/+4359
| | | | | | | | | |
| | * | | | | | | | MDEV-16465 Invalid (old?) table or database name or hang in ↵Sergei Golubchik2018-09-062-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ha_innobase::delete_table and log semaphore wait upon concurrent DDL with foreign keys lowercase db and table names before prelocking. Post-fix for 9180e8666b8 This fixes failures on main.lowercase_table4 on Windows
| | * | | | | | | | MDEV-16757 Memory leak after adding manually min/max statistical dataSergey Vojtovich2018-09-052-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for blob column Moved delete_stat_values_for_table_share() call to proper place.
| | * | | | | | | | cleanup: remove extra/rpl_tests/rpl_foreign_key.testSergei Golubchik2018-09-043-68/+62
| | | | | | | | | |
| | * | | | | | | | MDEV-16465 Invalid (old?) table or database name or hang in ↵Sergei Golubchik2018-09-042-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ha_innobase::delete_table and log semaphore wait upon concurrent DDL with foreign keys Disable "Invalid (old?) table or database name" warning when converting table names in InnoDB's get_foreign_key_info(). Because a name can be a temporary table name during the ALTER TABLE, and some other thread can do SHOW CREATE TABLE for the other table in the FK relationships _anytime_.
| | * | | | | | | | MDEV-16465 Invalid (old?) table or database name or hang in ↵Sergei Golubchik2018-09-046-9/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ha_innobase::delete_table and log semaphore wait upon concurrent DDL with foreign keys ALTER TABLE locks the table with TL_READ_NO_INSERT, to prevent the source table modifications while it's being copied. But there's an indirect way of modifying a table, via cascade FK actions. After previous commits, an attempt to modify an FK parent table will cause FK children to be prelocked, so the table-being-altered cannot be modified by a cascade FK action, because ALTER holds a lock and prelocking will wait. But if a new FK is being added by this very ALTER, then the target table is not locked yet (it's a temporary table). So, we have to lock FK parents explicitly.
| | * | | | | | | | create a reusable function that tells what FK actions can writeSergei Golubchik2018-09-043-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport of 794f71cbc41
| | * | | | | | | | MDEV-12669 Circular foreign keys cause a loop and OOM upon LOCK TABLESergei Golubchik2018-09-043-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | table_already_fk_prelocked() was looking for a table in the wrong list (not the complete list of prelocked tables, but only in its tail, starting from the current table - which is always empty for the last added table), so for circular FKs it kept adding same tables to the list indefinitely. Backport of d6d7e169fbf
| | * | | | | | | | compilation failureSergei Golubchik2018-09-042-12/+12
| | | | | | | | | |
| | * | | | | | | | extend prelocking to FK-accessed tablesSergei Golubchik2018-09-046-4/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport of f1362910980
| | * | | | | | | | cleanup: sp_head::add_used_tables_to_table_list()Sergei Golubchik2018-09-042-27/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use TABLE::init_one_table(), don't duplicate it. Put additional initializations into TABLE::init_one_table_for_prelocking() Backport of f1362910980
| | * | | | | | | | cleanup: FOREIGN_KEY_INFOSergei Golubchik2018-09-0411-92/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of returning strings for CASCADE/RESTRICT from every storage engine, use enum values Backport of a3614d33e8a
| | * | | | | | | | Merge branch '5.5' into 10.0bb-10.0-merge-sanjaOleksandr Byelkin2018-09-0311-16/+99
| | |\ \ \ \ \ \ \ \
| | | * | | | | | | | MDEV-16682 Assertion `(buff[7] & 7) == HEAD_PAGE' failedMonty2018-09-031-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Missed one file in last push...
| | | * | | | | | | | MDEV-16957: Server crashes in Field_iterator_natural_join::next upon 2nd ↵Oleksandr Byelkin2018-08-316-4/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | execution of SP The problem was that join_columns creation was not finished due to error of notfound column in USING, but next execution tried to use join_columns lists. Solution is cleanup the lists on error. It can eat memory in statement MEM_ROOT but it is an error and error will be fixed or statement/procedure removed/altered.
| | | * | | | | | | | MDEV-16682 Assertion `(buff[7] & 7) == HEAD_PAGE' failedMonty2018-08-302-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem was that SQL level tried to read a record with rnd_pos() that was already deleted by the same statement. In the case where the page for the record had been deleted, this caused an assert. Fixed by extending the assert to also handle empty pages and return HA_ERR_RECORD_DELETED for reads to deleted pages.