Commit graph

185064 commits

Author SHA1 Message Date
Igor Babaev
58b950737c MDEV-17096 Pushdown of simple derived tables to storage engines
Added plugin system variable federated_pushdown.
2019-02-12 13:11:32 -08:00
Sergey Vojtovich
4d5f85a3ec Bootstrap cleanups
Remove unused key_thread_bootstrap.
No more global bootstrap_error: it is return value of bootstrap() instead.
2019-02-12 23:07:51 +04:00
Sergei Golubchik
ffa4677c09 MDEV-12834 mysql_secure_installation should ask about unix_socket authentication
Optionally, restore the default root authentication, that is
mysql_native_password USING 'invalid' OR unix_socket
2019-02-12 19:14:37 +01:00
Sergei Golubchik
4e4df7b46d MDEV-12834 mysql_secure_installation should ask about unix_socket authentication
recognize new unix_socket protected accounts, and don't
scare the user into setting the password for them
2019-02-12 19:14:37 +01:00
Sergei Golubchik
b9f3f06857 MDEV-12484 Enable unix socket authentication by default
Change the default authentication for root@localhost to

  IDENTIFIED VIA mysql_native_password USING 'invalid' OR unix_socket

which provides secure passwordless login, while still allowing
SET PASSWORD to work as expected.

Also create a second all-privilege account for the user that owns
datadir (and thus has full access to the data anyway).

Compile unix_socket plugin statically into the server.
2019-02-12 19:14:37 +01:00
Sergei Golubchik
f07b76fcfd cleanup: remove reduntant variable 2019-02-12 19:14:37 +01:00
Oleksandr Byelkin
1b6b99be24 tempesta fixes 2019-02-12 16:17:47 +01:00
Jan Lindström
7dfbb66fcb
Merge pull request #1179 from grooverdan/10.4-disable-wsrep-allo
cmake/wsrep: allow disabling -DWITH_WSREP=OFF
2019-02-12 15:29:12 +02:00
Oleksandr Byelkin
dcc838168f Merge branch '10.3' into bb-10.3-merge 2019-02-12 12:05:10 +01:00
Oleksandr Byelkin
b953d70d15 Merge branch '10.2' into 10.3 2019-02-12 12:04:10 +01:00
Oleksandr Byelkin
31d6e9c3c8 Fix of error messages with big help of serg 2019-02-12 10:48:19 +01:00
Teemu Ollakka
f20dfeecc6 Recorded galera_sr_load_data_splitting, galera_sr_load_data 2019-02-12 10:37:05 +02:00
Teemu Ollakka
f06a0b5338 Implement wsrep_load_data_splitting with streaming replication
If wsrep_load_data_splitting is configured, change streaming replication
parameters internally to match the original behavior, i.e. replicate
on every 10000 rows. After load data is over, restore original
streaming replication settings.

Removed redundant wsrep_tc_log_commit().
2019-02-12 10:37:05 +02:00
Alexander Barkov
ce6505f890 MDEV-18447 Assertion `!is_zero_datetime()' failed in Timestamp_or_zero_datetime::tv 2019-02-12 11:59:17 +04:00
Marko Mäkelä
8a9cdc5f44 Merge 10.1 into 10.2 2019-02-12 09:54:12 +02:00
Julius Goryavsky
5b82751111 MDEV-18426: Most of the mtr tests in the galera_3nodes suite fail
Most of the mtr tests in the galera_3nodes suite fail
for a variety of reasons with a variety of errors.

This patch fixes several substantial flaws
in the galera_3nodes suite tests and in the mtr framework
service files, adapting the tests from galera_3nodes
for the current version of MariaDB.

This patch also synchronizes some galera_3nodes-related
files with the latest changes made for MDEV-17835 (v2 patch)
and for MDEV-18379 in other branches (10.2 and 10.3).

Closes #1161
2019-02-12 09:38:13 +02:00
Daniel Black
b2dd88f095 cmake/wsrep: allow disabling -DWITH_WSREP=OFF 2019-02-12 15:59:05 +11:00
Marko Mäkelä
9f56dd7382 Merge 10.3 into 10.4 2019-02-11 17:55:25 +02:00
Daniel Bartholomew
aae261e962 bump the VERSION 2019-02-11 10:43:57 -05:00
Andrei Elkin
fa57e11844 MDEV-10963 manual merge 10.1->10.3. 2019-02-11 15:32:45 +02:00
Jan Lindström
3a269a8b52 Record galera_var_load_data_splitting result after deprecating
warning.
2019-02-11 14:59:59 +02:00
Marko Mäkelä
4e7ee166a9 MDEV-18295 IMPORT TABLESPACE fails with instant-altered tables
When importing a tablespace, we must initialize dummy DEFAULT NULL
values for any instantly added columns in order to avoid a debug
assertion failure when PageConverter::update_records() invokes
rec_get_offsets(). Finally, when the operation completes, we must
evict and reload the table definition, so that the correct
default values for instantly added columns will be loaded.

ha_innobase::discard_or_import_tablespace(): On successful
IMPORT TABLESPACE, evict and reload the table definition,
so that btr_cur_instant_init() will load the correct metadata.

PageConverter::update_index_page(): Fill in dummy DEFAULT NULL values
for instantly added columns. These will be replaced upon the
completion of the operation by evicting and reloading the metadata.

row_discard_tablespace(): Invoke dict_table_t::remove_instant().
After DISCARD TABLESPACE, the table is no longer in "instant ALTER"
format, because there is no data file attached.
2019-02-11 14:42:48 +02:00
Jan Lindström
cbfbb70dd2
Merge pull request #1170 from codership/10.4-rsync_fix
MDEV-18178, mariabackup script timestamp change, galera suite fixed & re-recorded tests
2019-02-11 13:46:26 +02:00
Marko Mäkelä
0cdcb5f083 Re-record some results 2019-02-11 12:38:43 +02:00
Marko Mäkelä
55bb279c6f Correctly resolve the conflict around commit_cache_norebuild() 2019-02-11 12:34:46 +02:00
Marko Mäkelä
9e4f299404 Merge 10.1 into 10.2 2019-02-11 11:42:18 +02:00
Marko Mäkelä
be25414828 MDEV-18016: Cover the no-rebuild case, and remove a bogus debug assertion
The code path where the table was not being rebuilt during ALTER TABLE
was not covered by the test. Add coverage, and remove the debug assertion
that could fail in this case.
2019-02-11 11:38:18 +02:00
Jan Lindström
c4f3998365
Merge pull request #1175 from codership/10.4-fix-wsrep-toi-end
Fixed use of uninitialized value in wsrep_TOI_end()
2019-02-11 10:43:55 +02:00
Teemu Ollakka
f0513de525 Fixed use of uninitialized value in wsrep_TOI_end()
The if/else was a remnant from error voting code which was not
included in the release.
2019-02-11 10:10:55 +02:00
Marko Mäkelä
76c34a74a8 Fix the 32-bit results for max_rowid_filter_size 2019-02-11 09:24:31 +02:00
Igor Babaev
cd00d03fe2 MDEV-16188 Fixed the code of ha_partition::multi_range_read_info()
The code was rewritten in the same way as the code of
ha_partition::multi_range_read_info_const() had been rewritten
earlier.

The fix allowed to run spider.partition_mrr.
2019-02-10 21:15:48 -08:00
Galina Shalygina
3955d2a153 MDEV-18413: Find constraint correlated indexes
Find indexes of one table which parts participate in one constraint.
These indexes are called constraint correlated.

New methods: TABLE::find_constraint_correlated_indexes() and
virtual method check_index_dependence() were added.
For each index it's own constraint correlated index map was created
where all indexes that are constraint correlated with the current are
marked.

The results of this task are used for MDEV-16188 (Use in-memory
PK filters built from range index scans).
2019-02-10 22:36:46 +03:00
Igor Babaev
d11be23933 MDEV-17096 Pushdown of simple derived tables to storage engines
Resolved the problem of forming a proper query string for FEDERATEDX.
Added test cases.

Cleanup of extra spaces.
2019-02-09 22:54:26 -08:00
Sergei Golubchik
ca325a46d2 CONNECT: update test results 2019-02-10 00:21:43 +01:00
Sergei Golubchik
894f44b60b CONNECT: Windows paths
Followup for db8f0daeb4
2019-02-09 22:54:10 +01:00
Igor Babaev
15fe81c571 MDEV-16188 Post merge fixes: trying to get rid of Windows warnings. 2019-02-09 10:54:26 -08:00
Igor Babaev
9fe1e83df0 MDEV-16188 Post merge fixes: more for TokuDB 2019-02-08 12:32:31 -08:00
Marko Mäkelä
3c305d3f19 MDEV-15528: Introduce MLOG_INIT_FREE_PAGE
This is only a placeholder that allows an implementation later
during the development of MariaDB, so that downgrade to an earlier
version (with this code) will be possible.
We want to be able to zero out freed pages to reduce write amplification,
and to scrub old data. Zeroing out the pages is optional, not mandatory
for correctness. After all, the MLOG_INIT_FREE_PAGE record can only be
emitted for pages that are marked free in the allocation bitmap page.
2019-02-08 19:16:32 +02:00
Marko Mäkelä
ea25bdc135 Do not write MLOG_IBUF_BITMAP_INIT
Use ibuf_bitmap_page_init() only during recovery.

fsp_fill_free_list(): Initialize the FIL_PAGE_TYPE using MLOG_2BYTES.
The page contents will already have been zeroed out by
MLOG_INIT_FILE_PAGE2.

ibuf_bitmap_init_apply(): Replaces ibuf_parse_bitmap_init().
2019-02-08 19:10:33 +02:00
Marko Mäkelä
b8e867e869 MDEV-18219 Assertion index->n_core_null_bytes <= ... after DROP COLUMN
rec_init_offsets(): Relax a debug assertion that is too strict
during the execution of btr_cur_instant_init_low().
2019-02-08 18:46:03 +02:00
Oleksandr Byelkin
e5a5ae45d1 revert the check changes made in 8f5ea83ff1
and in fef9013d43
2019-02-08 16:40:12 +01:00
Sergei Golubchik
bc50d72604 C/C again
fixes memory leaks in restart_mysqld.inc tests
2019-02-08 16:38:39 +01:00
Teemu Ollakka
58de2bf30d MDEV-18481 Use mlog_memset() to clear wsrep checkpoint 2019-02-08 14:17:23 +00:00
mkaruza
131a4680c7 Fixed and re-recorded tests for galera
Re-recorded: galera.galera_gcache_recover_manytrx
Fixed: galera_3nodes.galera_evs_suspect_timeout
2019-02-08 14:26:56 +01:00
mkaruza
accc7f6029 MDEV-18178 Galera test failure on galera_sst_rsync2
* Donor node will now provide binlog-index argument to wsrep_sst_rsync script if binlog is used.
* Write correct path and binlog file names into joiner binlog-index file
2019-02-08 11:18:18 +01:00
mkaruza
26dcf102e3 Extend mariabackup archive timestamp in SST script
During parallel execution mariabackup script can fail when trying to create archive because of non unique name.  Extending archive timestamp with nanosecond.
2019-02-08 11:15:15 +01:00
Igor Babaev
651347b6c1 MDEV-16188 Post merge fixes fot TokuDB 2019-02-08 01:07:27 -08:00
Jan Lindström
eb1d7aeeea
Merge pull request #1165 from codership/10.4-galera_sst_mysqldump-cnf-fix
Fix for failures on galera.galera_sst_mysqldump
2019-02-08 07:58:29 +02:00
Elena Stepanova
0216f87d38 Updated list of unstable tests for 10.2.22 2019-02-08 01:07:19 +02:00
Sergei Golubchik
65f22b8fd4 C/C again 2019-02-07 19:39:23 +01:00