v.25.6Improvement
Add throw_on_error
Addthrow_on_errorsetting forstartup_scripts: whenthrow_on_erroris true, the server will not start unless all queries complete successfully. By default,throw_on_erroris false, preserving the previous behavior. #79732 (Aleksandr Musorin).
Why it matters
This feature ensures that the ClickHouse server only starts if all startup scripts execute successfully, preventing startup when errors occur in these scripts. It helps maintain a reliable and predictable server state by avoiding partial or failed initialization.How to use it
Set thethrow_on_error setting to true in the startup_scripts configuration to enforce strict error checking. By default, this setting is false, allowing the server to start even if some startup script queries fail.