Provide better partitions hint for merge selecting task#49637
Provide better partitions hint for merge selecting task#49637
Conversation
|
This is an automated comment for commit c2b1e8c with description of existing statuses. It's updated for the latest CI running
|
3bc16e2 to
aa829c4
Compare
|
Integration tests (asan) [4/6] - #45404 |
|
Stateless tests (release, analyzer) - #46835 (comment) |
| auto new_end_it = std::remove_if(res.begin(), res.end(), [partitions_hint](const auto & part) | ||
| { | ||
| return !partitions_hint->contains(part->info.partition_id); | ||
| }); | ||
| res.erase(new_end_it, res.end()); |
|
|
||
| /// Lightweight version of ReplicatedMergeTreeMergePredicate that do not make any ZooKeeper requests, | ||
| /// but may return false-positive results. Checks only a subset of required conditions. | ||
| class TrivialMergePredicate |
| @@ -0,0 +1,24 @@ | |||
|
|
|||
There was a problem hiding this comment.
I don't think these drop queries are really useful since we create a new database for each test, but okay
087dfba to
c2b1e8c
Compare
|
Integration tests (release) [2/4] - #48691 |
|
@tavplubix Hi! Can you backport this to 23.3 ? It will be really helpful for us. |
Improvements, and specially ones with critical changes like this, aren't backported. That's the whole point of stable releases. Consider upgrading. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Reduced number of
ListZooKeeper requests when selecting parts to merge and a lot of partitions do not have anything to mergeAlso fixes #49201