-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Do not reload *all* dictionaries on CREATE DATABASE #7916
Do not reload *all* dictionaries on CREATE DATABASE #7916
Conversation
d9755f6
to
6982685
Compare
This ignores any lifetime, while dictionaries can be quite big. Fixes: c7cd911 ("Merge pull request ClickHouse#7360") Refs: ClickHouse#7360 (comment)
6982685
to
4530ade
Compare
lgtm |
Do not reload *all* dictionaries on CREATE DATABASE (cherry picked from commit af85eb8)
Conflicts with 19.16. |
Will take a look |
The problem is that
To fix this properly I guess something like As a hot-fix, |
I think, it's better to make
It's ok for hotfix. |
…ate_database* Due to the async nature of SYSTEM RELOAD DICTIONARY/DICTIONARIES the test can fail, if the reload will happen after the dictGet*(): .862801 [ 36 ] {61df55ee-4a17-4bf3-8cfb-9478490393c3} <Debug> executeQuery: (from [::1]:37422) SYSTEM RELOAD DICTIONARY `foo 1234.dict` .863681 [ 36 ] {cd55d9f9-d176-4b19-bc97-d25575da2d15} <Debug> executeQuery: (from [::1]:37422) SELECT query_count FROM system.dictionaries WHERE (database = 'foo 1234') AND ... .863678 [ 54 ] {} <Debug> executeQuery: (internal) SELECT `key`, `val` FROM `foo 1234`.`dict_data`; This is just a hotfix, long-term solution will be to make SYSTEM RELOAD DICTIONARY syncronous (by adding another command or making already existing). Refs: ClickHouse#7916
Changelog category (leave one):
Changelog entry (up to few sentences, required except for Non-significant/Documentation categories):
Do not reload all dictionaries on CREATE DATABASE (This ignores any lifetime, while dictionaries can be quite big).
Detailed description (optional):
Fixes: c7cd911 ("Merge pull request #7360")
Refs: #7360 (comment)
Cc: @alesapin