← Back to team overview

maria-developers team mailing list archive

Re: Rev 3804: MDEV-4712 : Fix "shutdown" test

 

Hi, Vladislav!

On Jul 31, Vladislav Vaintroub wrote:
> ------------------------------------------------------------
> revno: 3804
> revision-id: wlad@xxxxxxxxxxxxxxxx-20130731130414-ukqxbb0kxpexjnzp
> parent: svoj@xxxxxxxxxxx-20130731110211-09p66bwf4jrmi03i
> committer: Vladislav Vaintroub <wlad@xxxxxxxxxxxxxxxx>
> branch nick: 10.0-serg
> timestamp: Wed 2013-07-31 15:04:14 +0200
> message:
>   MDEV-4712 : Fix "shutdown" test.
>   
>   There is a race condition during shutdown, that happens when "show status" runs during shutdown. 
>   Functions show_slave_running(), show_slave_received_heartbeats(), show_heartbeat_period() would dereference NULL pointer master_info_index, after this variable is  set to NULL in slave_end() during shutdown.
>   Fix introduces check for master_info_index == NULL in the affected functions.

Was it related to the new shutdown command? Or it could be also observed
without it by, say, running show status in a loop, while stopping the
server with mysqladmin?

Regards,
Sergei


Follow ups