Bug #3559 | Replication crash when slave under high load | ||
---|---|---|---|
Submitted: | 25 Apr 2004 21:53 | Modified: | 15 May 2004 12:44 |
Reporter: | Dave OReilly | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 4.0.18-log | OS: | Linux (Redhat linux 9) |
Assigned to: | Heikki Tuuri | CPU Architecture: | Any |
[25 Apr 2004 21:53]
Dave OReilly
[25 Apr 2004 23:39]
Heikki Tuuri
Dave, please show the complete .err log so that we see what has stuck and where. Looks like a log write never completes. Usually, these file write hangs are bugs in the OS or its drivers. Regards, Heikki
[26 Apr 2004 14:03]
Dave OReilly
Complete error log
Attachment: mysql.slave.err (text/plain), 167.84 KiB.
[30 Apr 2004 2:11]
Dave OReilly
Complete log file has been attached, regards, daveor
[15 May 2004 12:44]
Heikki Tuuri
Hi! This looks like the OS is stuck doing a pwrite() to an InnoDB log file. The situation stays like below for an extended time. This is probably a bug in the OS/drivers/hardware, not in InnoDB. Regards, Heikki -------- FILE I/O -------- I/O thread 0 state: waiting for i/o request (insert buffer thread) I/O thread 1 state: doing file i/o (log thread) I/O thread 2 state: waiting for i/o request (read thread) I/O thread 3 state: waiting for i/o request (write thread) Pending normal aio reads: 0, aio writes: 0, ibuf aio reads: 0, log i/o's: 1, sync i/o's: 0 Pending flushes (fsync) log: 1; buffer pool: 0 70 OS file reads, 846 OS file writes, 812 OS fsyncs 0 pending preads, 1 pending pwrites 0.00 reads/s, 0 avg bytes/read, 0.87 writes/s, 0.87 fsyncs/s ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf for space 0: size 1, free list len 0, seg size 2, 0 inserts, 0 merged recs, 0 merges Hash table size 34679, used cells 1, node heap has 1 buffer(s) 0.87 hash searches/s, 0.00 non-hash searches/s --- LOG --- Log sequence number 0 1998465 Log flushed up to 0 1998403 Last checkpoint at 0 1934642 1 pending log writes, 1 pending chkp writes 793 log i/o's done, 0.87 log i/o's/second