mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
Trigger queue extry processing after ALTER TABLE REPLACE/MOVE PARTITION
This commit is contained in:
parent
98cd45153d
commit
9dd9c227e5
@ -8180,6 +8180,9 @@ void StorageReplicatedMergeTree::replacePartitionFrom(
|
||||
++idx;
|
||||
}
|
||||
|
||||
/// Force execution of inserted log entries, because it could be delayed at BackgroundPool.
|
||||
background_operations_assignee.trigger();
|
||||
|
||||
for (const auto & entry : entries)
|
||||
waitForLogEntryToBeProcessedIfNecessary(*entry, query_context);
|
||||
}
|
||||
@ -8720,6 +8723,9 @@ void StorageReplicatedMergeTree::movePartitionToTable(const StoragePtr & dest_ta
|
||||
parts_holder.clear();
|
||||
cleanup_thread.wakeup();
|
||||
|
||||
/// Force execution of inserted log entries, because it could be delayed at BackgroundPool.
|
||||
background_operations_assignee.trigger();
|
||||
|
||||
waitForLogEntryToBeProcessedIfNecessary(entry_delete, query_context);
|
||||
|
||||
/// Cleaning possibly stored information about parts from /quorum/last_part node in ZooKeeper.
|
||||
|
Loading…
Reference in New Issue
Block a user