Set max_parallel_replicas default to 1000#74504
Conversation
|
This is an automated comment for commit 29ca3bf 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
|
da63396 to
62903ca
Compare
abb2f81 to
7f7b319
Compare
7f7b319 to
f835bc1
Compare
|
|
| context_->getSettingsRef()[Setting::connections_with_failover_max_tries].value, | ||
| context_->getSettingsRef()[Setting::fallback_to_stale_replicas_for_distributed_queries].value, | ||
| context_->getSettingsRef()[Setting::max_parallel_replicas].value, | ||
| context_->getSettingsRef()[Setting::allow_experimental_parallel_reading_from_replicas].value > 0 |
There was a problem hiding this comment.
It doesn't look correct. Parallel replicas and hedged connection are independent. Hedge connections are not used with parallel replicas. So, we should pass here max_parallel_replicas setting as it's.
It means the query will use just 1 replicas for distributed query when parallel replicas is disabled, but parallel replicas and distributed queries are not the same thing.
I wonder how do we get pass tests with such change. Either test doesn't check number of used replicas for a query or ...
There was a problem hiding this comment.
I guess I took it wrong, — it should mean 1 replica per shard. So, it should be ok.
| ) | ||
| check_query() | ||
| check_changing_replica_events(4) | ||
| check_changing_replica_events(3) |
There was a problem hiding this comment.
Changing max_parallel_replicas shouldn't affect this check. AFAIU, here we introduced delay in response for 4 replicas, so we expect that hedge connection mechanism will try to replace unresponsive replicas with another one (it checks HedgedRequestsChangeReplica profile event). Let's check with the author, @Avogar
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Use up to
1000parallel replicas by default.CI Settings (Only check the boxes if you know what you are doing)
All builds in Builds_1 and Builds_2 stages are always mandatory
and will run independently of the checks below: