v.25.6Improvement

Add throw_on_error

Add throw_on_error setting for startup_scripts: when throw_on_error is true, the server will not start unless all queries complete successfully. By default, throw_on_error is false, preserving the previous behavior. #79732 (Aleksandr Musorin).
Added a new throw_on_error setting for startup_scripts that controls server startup behavior based on script execution success.

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 the throw_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.