mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Found two bugs (1) have_committing_connections was missing mutex unlock on one exit case. As this function is called on a loop it caused mutex lock when we already owned the mutex. This could cause hang. (2) wsrep_RSU_begin did set up error code when partition to be dropped could not be MDL-locked because of concurrent operations but wrong error code was propagated to upper layer causing error to be ignored. This could have also caused the hang.
82 lines
2.5 KiB
INI
82 lines
2.5 KiB
INI
# Use default setting for mysqld processes
|
|
!include include/default_mysqld.cnf
|
|
|
|
[mysqld]
|
|
binlog-format=row
|
|
innodb-autoinc-lock-mode=2
|
|
default-storage-engine=innodb
|
|
wsrep-provider=@ENV.WSREP_PROVIDER
|
|
wsrep_node_address=127.0.0.1
|
|
# enforce read-committed characteristics across the cluster
|
|
wsrep-causal-reads=ON
|
|
wsrep-sync-wait=15
|
|
# lock schedule alg appears to be VATS by default, and it is not
|
|
# yet compatible with galera
|
|
innodb_lock_schedule_algorithm=FCFS
|
|
|
|
[mysqld.1]
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
wsrep-on=1
|
|
wsrep-cluster-address=gcomm://
|
|
wsrep_provider_options='base_port=@mysqld.1.#galera_port;gcache.size=10M'
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.1.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.1.#sst_port'
|
|
# lock schedule alg appears to be VATS by default, and it is not
|
|
# yet compatible with galera
|
|
innodb_lock_schedule_algorithm=FCFS
|
|
|
|
[mysqld.2]
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
wsrep-on=1
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.1.#galera_port'
|
|
wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcache.size=10M'
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.2.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.2.#sst_port'
|
|
# lock schedule alg appears to be VATS by default, and it is not
|
|
# yet compatible with galera
|
|
innodb_lock_schedule_algorithm=FCFS
|
|
|
|
|
|
[mysqld.3]
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
wsrep-on=1
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.1.#galera_port'
|
|
wsrep_provider_options='base_port=@mysqld.3.#galera_port;gcache.size=10M'
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.3.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.3.#sst_port'
|
|
# lock schedule alg appears to be VATS by default, and it is not
|
|
# yet compatible with galera
|
|
innodb_lock_schedule_algorithm=FCFS
|
|
|
|
|
|
[mysqld.4]
|
|
#galera_port=@OPT.port
|
|
#ist_port=@OPT.port
|
|
#sst_port=@OPT.port
|
|
wsrep-on=1
|
|
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.1.#galera_port'
|
|
wsrep_provider_options='base_port=@mysqld.4.#galera_port;gcache.size=10M'
|
|
wsrep_node_incoming_address=127.0.0.1:@mysqld.4.port
|
|
wsrep_sst_receive_address='127.0.0.1:@mysqld.4.#sst_port'
|
|
# lock schedule alg appears to be VATS by default, and it is not
|
|
# yet compatible with galera
|
|
innodb_lock_schedule_algorithm=FCFS
|
|
|
|
[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
|
|
|
|
NODE_MYPORT_4= @mysqld.4.port
|
|
NODE_MYSOCK_4= @mysqld.4.socket
|