v.25.11Improvement

Make SYSTEM FLUSH LOGS query wait

Make SYSTEM FLUSH LOGS query wait for table creation even when the logs are empty. #89408 (János Benjamin Antal).
The SYSTEM FLUSH LOGS query is enhanced to wait for table creation even if the associated logs are empty.

Why it matters

This feature ensures that SYSTEM FLUSH LOGS reliably waits for log tables to be created. Previously, if log tables were empty or not yet created, the command would not wait, potentially causing inconsistencies. Now, it improves stability and consistency when flushing logs.

How to use it

Users can simply execute the SYSTEM FLUSH LOGS command as before. The command now internally waits for the log tables to be created even if they contain no data, requiring no additional configuration.