← Back to team overview

maria-developers team mailing list archive

Re: bf2eaa7: MDEV-9382: After updating mariadb server apt-configure fails

 

Hi Serg,

On Wed, Mar 16, 2016 at 3:02 PM, Sergei Golubchik <serg@xxxxxxxxxxx> wrote:
.. cut..

> diff --git a/debian/mariadb-server-10.1.mysql.init
> b/debian/mariadb-server-10.1.mysql.init
> > index 9e098b4..005d0e8 100644
> > --- a/debian/mariadb-server-10.1.mysql.init
> > +++ b/debian/mariadb-server-10.1.mysql.init
> > @@ -109,7 +109,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
>
> This doesn't fix much. Next time somebody will need 61 second and you'll
> adjust to 120?  SST might take many minutes and it's not a good idea to
> have every user wait this long.
>
> Instead you should do what MDEV-8509 says. Add a line like
>
>   [ -r /etc/default/mariadb ] && . /etc/default/mariadb
>
> then one can have a very personal setting of MYSQLD_STARTUP_TIMEOUT
> in /etc/default/mariadb
>

I was also keen on changing the default 30 secs limit to some higher value
like
60 or 90 secs, so that it works for more installations by default.

I will re-commit one.

Best,
Nirbhay


>
> Regards,
> Sergei
> Chief Architect MariaDB
> and security@xxxxxxxxxxx
>

References