- 29 Jun, 2016 3 commits
-
-
Nirbhay Choubey authored
.. file '/var/log/mysql/mariadb-bin.000001' not found in binlog index, needed for recovery. Aborting. In Galera cluster, while preparing for rsync/xtrabackup based SST, the donor node takes an FTWRL followed by (REFRESH_ENGINE_LOG in rsync based state transfer and) REFRESH_BINARY_LOG. The latter rotates the binary log and logs Binlog_checkpoint_log_event corresponding to the penultimate binary log file into the new file. The checkpoint event for the current file is later logged synchronously by binlog_background_thread. Now, since in rsync/xtrabackup based snapshot state transfer methods, only the last binary log file is transferred to the joiner node; the file could get transferred even before the checkpoint event for the same file gets written to it. As a result, the joiner node would fail to start complaining about the missing binlog file needed for recovery. In order to fix this, a mechanism has been put in place to make REFRESH_BINARY_LOG operation wait for Binlog_checkpoint_log_event to be logged for the current binary log file if the node is part of a Galera cluster. As further safety, during rsync based state transfer the donor node now acquires and owns LOCK_log for the duration of file transfer during SST.
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
- 28 Jun, 2016 13 commits
-
-
Sergei Golubchik authored
SSL: do not require client certificate to exist, if GRANT didn't require that
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-
Jan Lindström authored
ut_a(state == BUF_BLOCK_NOT_USED || state == BUF_BLOCK_REMOVE_HASH); is hit.
-
Sergei Golubchik authored
fix the *other* fill_record() too, arrgh!
-
Sergei Golubchik authored
set CPACK_COMPONENTS_ALL both on the current and parent scope
-
Sergei Golubchik authored
s/unixODBC/unixodbc/
-
Sergei Golubchik authored
-
Alexander Barkov authored
Item_cache::is_null() erroneously returned null_value in a non-cached state. Now Item_cache::is_null() uses has_value(), which caches the value if not cached yet, similar to what other value methods do (e.g. val_int, val_real, etc).
-
Sergei Golubchik authored
-
Martin Stefany authored
Using IP address in donor's socat with TLS/SSL and certificate which doesn't contain IP address in CN or SubjectAltName causes transfer to fail with message: socat[5799] E certificate is valid but its commonName does not match hostname. This patch tries to reverse resolve IP address to hostname and use it for transfer. If reverse resolution fails, IP address is still used as fall-back, so proper A/AAAA and PTR records are important, but not mandatory. Certain certificates cannot contain IP addresses, e.g. FreeIPA's Dogtag doesn't allow it, so in my case I would need to use self- signed certificates instead, use verify=0 with socat or don't use TLS/SSL at all. Issue is mentioned in MDEV-9403.
-
- 27 Jun, 2016 17 commits
-
-
Nirbhay Choubey authored
Since wsrep_sync_wait & wsrep_causal_reads variables are related, they are always kept in sync whenever one of them changes. Same is tried on server start, where wsrep_sync_wait get updated based on wsrep_causal_reads' value. But, since wsrep_causal_reads is OFF by default, wsrep_sync_wait's value gets modified and loses its WSREP_SYNC_WAIT_BEFORE_READ bit. Fixed by syncing wsrep_sync_wait & wsrep_causal_reads values individually on server start in mysqld_get_one_option() based on command line arguments used.
-
Nirbhay Choubey authored
Added a new --wsrep-new-cluster option to enable mysqld_multi script to start mysqld with the same option. [Patch contributed by Hartmut]
-
Nirbhay Choubey authored
Append mysqld_safe's wsrep-on option to the list of options used to start mysqld. [Patch contributed by Hartmut]
-
Nirbhay Choubey authored
In CTAS, handlers get registered under statement transaction (st_transactions::stmt), while ha_fake_trx_id(), used by CTAS, looked under standard transaction (st_transactions::all) for registered handlers, and thus it failed to grab a fake transaction ID. As a result, with no valid transaction ID, wsrep commit failed with an error. ha_fake_trx_id() now looks for handlers registered under 'stmt' in case 'all' is empty. Also modified the logic to print warning only once if none of the registered handlers have fake_trx_id.
-
Nirbhay Choubey authored
-
Nirbhay Choubey authored
On wsrep_cluster_address update, node restarts the replication and attempts to connect to the new address. In this process it makes a call to wsrep provider's connect API, which could lead to segfault if wsrep provider is not loaded (wsrep_on=OFF). Fixed by making sure that it proceeds only if a provider is loaded.
-
Nirbhay Choubey authored
-
Nirbhay Choubey authored
Update sys_vars.sysvars_wsrep test.
-
Nirbhay Choubey authored
Galera recovery process works in two phases. In the first phase, mysqld is started as non-daemon with --wsrep-recover to recover and fetch the last logged global transaction ID. This ID is then used in second phase as the start position (--wsrep-start-position=XX) to start mysqld as daemon. As this process was implemented in mysqld_safe script, the recovery did not work when server was started using systemd. Fixed by introducing a shell script (wsrep_recovery.sh) that mimics the first phase of the recovery process.
-
Nirbhay Choubey authored
--defaults-xxx options must be placed before all other options in the command line. Also moved MYSQLD_OPTS at the end so that its options take precedence.
-
Nirbhay Choubey authored
errno must be reset before strtol()/strtoll() functions are invoked.
-
Nirbhay Choubey authored
Fixed by using hostname (glob_hostname) as default value for wsrep_node_name system variable. Added a test case.
-
Nirbhay Choubey authored
-
Alexey Botchkov authored
Servers sets default DEFINER to empty if run with the --scip-grant-tables option. So specify the DEFINER explicitly
-
Alexey Botchkov authored
Compiler on Sparc is strict about the 'const' modifiers in function declarations and definitions. Meaning they should be exactly same.
-
Alexander Barkov authored
MDEV-10277 Redundant NOTE when inserting '0.00001 ' into a DECIMAL(2,1) column
-
Nirbhay Choubey authored
-
- 24 Jun, 2016 6 commits
-
-
Nirbhay Choubey authored
-
Nirbhay Choubey authored
-
Nirbhay Choubey authored
-
Daniel Bartholomew authored
-
holyfoot authored
MDEV-10214: Fix segfault when using groups in PAM user mapping plugin
-
Oleksandr Byelkin authored
thd should not be taken earlier then fix_field and reset on fix_fields if it is needed.
-
- 23 Jun, 2016 1 commit
-
-
Alexander Barkov authored
MDEV-8686 A user defined collation utf8_confusables doesn't work 25e68c5e
-