Bug #104666 flush logs ( FLUSH RELAY LOGS ) taking forever and it is in starting state
| Submitted: | 19 Aug 2021 13:47 | Modified: | 23 Aug 2021 12:29 |
|---|---|---|---|
| Reporter: | Trimurthy Pothanaboyina | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 8.0.25 | OS: | SUSE (SUSE Linux Enterprise Server 12 SP5) |
| Assigned to: | CPU Architecture: | x86 (x86_64) |
[19 Aug 2021 13:47]
Trimurthy Pothanaboyina
[19 Aug 2021 13:54]
Trimurthy Pothanaboyina
The following are the flush commands with their respective status. Ran the following commands while flush logs sessions already running more than an hour. And also stop slave & start slave commands are also not working during this situation. mysql> FLUSH BINARY LOGS; Query OK, 0 rows affected (0.09 sec) mysql> FLUSH ENGINE LOGS; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH ERROR LOGS; Query OK, 0 rows affected (0.03 sec) mysql> FLUSH GENERAL LOGS; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH SLOW LOGS; Query OK, 0 rows affected (0.09 sec) mysql> FLUSH RELAY LOGS; ^C^C -- sending "KILL QUERY 1685" to server ... ^C -- query aborted ^C^C -- sending "KILL QUERY 1685" to server ... ^C -- query aborted ^Z [3]+ Stopped
[23 Aug 2021 12:29]
MySQL Verification Team
Hi Mr. pothanaboyina, Thank you for your bug report. However, it is not a bug. Flushing binary and relay logs depends totally on the locks that are set by InnoDB and other storage engines. Hence, flushing those logs has to wait for all the foreground transactions and backgrounds threads to finish their work, before these logs can be flushed. Hence, not a bug.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.