Repository navigation
Asynchronous loading of tables by default - #57695
Merged
Merged
Conversation
Contributor
|
This is an automated comment for commit bd76fac with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
| Queries to not yet loaded entity will be blocked until load is finished. | ||
| --> | ||
| <!-- <async_load_databases>true</async_load_databases> --> | ||
| <async_load_databases>true</async_load_databases> |
Member
There was a problem hiding this comment.
Let move it to tests/config/config.d.
Member
Author
There was a problem hiding this comment.
My intent is to enable it by default.
Member
|
@alexey-milovidov Isn't this change backward incompatible? Now sever will start even with unavailable tables. Proxies and balancers will route queries to this server, queries will start to fail with exceptions. I suspect that for many users it will breaking behavior. |
Member
Author
|
@alesapin, we can highlight it as a backward incompatible change. |
Member
|
@alexey-milovidov than we need to change category? |
Member
Author
|
@alesapin Added description. |
azat
added a commit
to azat/ClickHouse
that referenced
this pull request
Jan 20, 2025
In ClickHouse#57695 it was enabled only in config.xml, which enables it only for installations that has new config.xml, i.e. complete new installations. But some installations may be upgraded without upgrading config.xml, i.e. bare-metal installations. Follow-up for: ClickHouse#57695 Signed-off-by: Azat Khuzhin <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Enable asynchronous load of databases and tables by default. See the
async_load_databasesin config.xml. While this change is fully compatible, it can introduce a difference in behavior. Whenasync_load_databasesis false, as in the previous versions, the server will not accept connections until all tables are loaded. Whenasync_load_databasesis true, as in the new version, the server can accept connections before all the tables are loaded. If a query is made to a table that is not yet loaded, it will wait for the table's loading, which can take considerable time. It can change the behavior of the server if it is part of a large distributed system under a load balancer. In the first case, the load balancer can get a connection refusal and quickly failover to another server. In the second case, the load balancer can connect to a server that is still loading the tables, and the query will have a higher latency. Moreover, if many queries accumulate in the waiting state, it can lead to a "thundering herd" problem when they start processing simultaneously. This can make a difference only for highly loaded distributed backends. You can set the value ofasync_load_databasesto false to avoid this problem.