-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rethrow exception on cache initialisation on server startup, better error message #39386
Conversation
@@ -45,7 +45,7 @@ void LRUFileCache::initialize() | |||
catch (...) | |||
{ | |||
tryLogCurrentException(__PRETTY_FUNCTION__); | |||
return; | |||
throw; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
who is supposed to handle it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be thrown while creating the disk, and it is created in constructor of DIskSelector, which does not catch errors when creating the disks. So I expect that server will fail to start if the exception is thrown here.
01676_long_clickhouse_client_autocomplete |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Rethrow exception on filesystem cache initialisation on server startup, better error message.