Relay log can contain partially written group at the end of log file in following cases:
1. Slave crashed, in this case group will be written again in the next file
2. STOP SALVE at the specific moment, group will be written again in the next file
3. Server shutdown at the specific moment, group will be written again in the next file
4. FLUSH LOGS, group will *not* be written again in the next file
We need to test all cases and make sure they all work correctly.
Relay log can contain partially written group at the end of log file in following cases:
1. Slave crashed, in this case group will be written again in the next file
2. STOP SALVE at the specific moment, group will be written again in the next file
3. Server shutdown at the specific moment, group will be written again in the next file
4. FLUSH LOGS, group will *not* be written again in the next file
We need to test all cases and make sure they all work correctly.