chusiang / mysql-master-master

Automatically exported from code.google.com/p/mysql-master-master
GNU General Public License v2.0
1 stars 1 forks source link

Dead lock in PrintLog? #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There seems to be a locking issue in the logging function PrintLog. 3 times
today only the checker thread continued running on startup while the other
thread hanged in CheckServersStates -> LogTrap -> PrintLog. On shutdown of
mmmd_mon the checker thread finished execution and than the other thread
was able to continue execution.

The log message "Daemon: State change($host_name): HARD_OFFLINE ->
AWAITING_RECOVERY" ended up in the logfiles 12 minutes two late (mmmd_mon
was running for ~12 minutes, the timestamp was 12 minutes in the past, but
it was one of the last entries in the log).

Maybe this could also be caused by SendLogEmailNotice.

Original issue reported on code.google.com by m...@pascalhofmann.de on 4 Nov 2008 at 6:28

GoogleCodeExporter commented 9 years ago
I think this was caused by SendLogEmailNotice (I am using an unconfigured 
nullmailer
as MTA in my test-VMs). I disabled sending emails in my mmm_mon.conf and it 
never
occured again.

Original comment by m...@pascalhofmann.de on 6 Nov 2008 at 3:17