Replication Slave SQL Thread States
742
The thread has connected to the master and is waiting for binary log events to arrive. This can last
for a long time if the master is idle. If the wait lasts for
slave_net_timeout
[1466]
seconds,
a timeout occurs. At that point, the thread considers the connection to be broken and makes an
attempt to reconnect.
•
Queueing master event to the relay log
The thread has read an event and is copying it to the relay log so that the SQL thread can process it.
•
Waiting to reconnect after a failed master event read
An error occurred while reading (due to disconnection). The thread is sleeping for the number of
seconds set by the
CHANGE MASTER TO
statement or
--master-connect-retry
[1453]
option
(default 60) before attempting to reconnect.
•
Reconnecting after a failed master event read
The thread is trying to reconnect to the master. When connection is established again, the state
becomes
Waiting for master to send event
.
•
Waiting for the slave SQL thread to free enough relay log space
You are using a nonzero
relay_log_space_limit
[490]
value, and the relay logs have grown
large enough that their combined size exceeds this value. The I/O thread is waiting until the SQL
thread frees enough space by processing relay log contents so that it can delete some relay log files.
•
Waiting for slave mutex on exit
A state that occurs briefly as the thread is stopping.
8.10.7. Replication Slave SQL Thread States
The following list shows the most common states you may see in the
State
column for a slave server
SQL thread:
•
Waiting for the next event in relay log
The initial state before
Reading event from the relay log
.
•
Reading event from the relay log
The thread has read an event from the relay log so that the event can be processed.
•
Has read all relay log; waiting for the slave I/O thread to update it
The thread has processed all events in the relay log files, and is now waiting for the I/O thread to
write new events to the relay log.
•
Making temp file
The thread is executing a
LOAD DATA INFILE
statement and is creating a temporary file containing
the data from which the slave will read rows.
•
Waiting for slave mutex on exit
A very brief state that occurs as the thread is stopping.
The
State
column for the I/O thread may also show the text of a statement. This indicates that the
thread has read an event from the relay log, extracted the statement from it, and is executing it.
8.10.8. Replication Slave Connection Thread States
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...