mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
The setting innodb_lock_schedule_algorithm=VATS that was introduced in MDEV-11039 (commit021212b525) causes conflicting exclusive locks to be incorrectly granted to two transactions. Specifically, in lock_rec_insert_by_trx_age() the predicate !lock_rec_has_to_wait_in_queue(in_lock) would hold even though an active transaction is already holding an exclusive lock. This was observed between two DELETE of the same clustered index record. The HASH_DELETE invocation in lock_rec_enqueue_waiting() may be related. Due to lack of progress in diagnosing the problem, we will remove the option. The unsafe option was enabled by default between commit0c15d1a6ff(MariaDB 10.2.3) and the parent of commit1cc1d0429d(MariaDB 10.2.17, 10.3.9), and it was deprecated in commit295e2d500b(MariaDB 10.2.34).
64 lines
1.5 KiB
INI
64 lines
1.5 KiB
INI
#
|
|
# This file creates a setup with a 2-node Galera cluster (master) and one
|
|
# standalone MariaDB server, to be used as a slave.
|
|
#
|
|
|
|
# Use default setting for mysqld processes
|
|
!include include/default_mysqld.cnf
|
|
|
|
[mysqld]
|
|
log-bin=mysqld-bin
|
|
binlog-format=row
|
|
innodb-autoinc-lock-mode=2
|
|
default-storage-engine=innodb
|
|
|
|
[mysqld.1]
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
|
|
server-id=1
|
|
log_slave_updates
|
|
|
|
wsrep-on=1
|
|
wsrep-provider=@ENV.WSREP_PROVIDER
|
|
wsrep_provider_options='base_port=@mysqld.1.#galera_port;gcache.size=10M'
|
|
wsrep_cluster_address=gcomm://
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.1.#sst_port'
|
|
wsrep_node_address=127.0.0.1
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.1.port
|
|
# enforce read-committed characteristics across the cluster
|
|
wsrep-causal-reads=ON
|
|
wsrep-sync-wait=15
|
|
|
|
[mysqld.2]
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
|
|
server-id=2
|
|
log_slave_updates
|
|
|
|
wsrep-on=1
|
|
wsrep_provider=@ENV.WSREP_PROVIDER
|
|
wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcache.size=10M'
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.1.#galera_port'
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.2.#sst_port'
|
|
wsrep_node_address=127.0.0.1
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.2.port
|
|
# enforce read-committed characteristics across the cluster
|
|
wsrep-causal-reads=ON
|
|
wsrep-sync-wait=15
|
|
|
|
[mysqld.3]
|
|
server-id=3
|
|
|
|
[ENV]
|
|
NODE_MYPORT_1= @mysqld.1.port
|
|
NODE_MYSOCK_1= @mysqld.1.socket
|
|
|
|
NODE_MYPORT_2= @mysqld.2.port
|
|
NODE_MYSOCK_2= @mysqld.2.socket
|
|
|
|
NODE_MYPORT_3= @mysqld.3.port
|
|
NODE_MYSOCK_3= @mysqld.3.socket
|