Skip to content

Commit

Permalink
MDEV-9382: After updating mariadb server apt-configure fails
Browse files Browse the repository at this point in the history
When acting as a Galera receiver node, server startup may take
more than 30 secs (the current default) as it has to wait for
SST/IST operation to complete besides spending some time doing
wsrep recovery.

Fixed by raising the default value of MYSQLD_STARTUP_TIMEOUT
to 60 secs. Also sourced /etc/default/mariadb into the init
script so that it can be used to set MYSQLD_STARTUP_TIMEOUT.
  • Loading branch information
Nirbhay Choubey committed Mar 22, 2016
1 parent df3ad11 commit 52ce743
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion debian/mariadb-server-10.1.mysql.init
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ umask 077
# so break my scripts.
export HOME=/etc/mysql/

# Source default config file.
[ -r /etc/default/mariadb ] && . /etc/default/mariadb

## Fetch a particular option from mysql's invocation.
#
# Usage: void mysqld_get_param option
Expand Down Expand Up @@ -109,7 +112,7 @@ case "${1:-''}" in
/usr/bin/mysqld_safe "${@:2}" > /dev/null 2>&1 &

# 6s was reported in #352070 to be too little
for i in $(seq 1 "${MYSQLD_STARTUP_TIMEOUT:-30}"); do
for i in $(seq 1 "${MYSQLD_STARTUP_TIMEOUT:-60}"); do
sleep 1
if mysqld_status check_alive nowarn ; then break; fi
log_progress_msg "."
Expand Down

0 comments on commit 52ce743

Please sign in to comment.