mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
cannot take a number of unlocked abandonable lock
This commit is contained in:
parent
c9bb986330
commit
f63d2dc3c8
@ -3126,8 +3126,8 @@ bool StorageReplicatedMergeTree::getFakePartCoveringAllPartsInPartition(const St
|
||||
{
|
||||
auto zookeeper = getZooKeeper();
|
||||
auto block_number_lock = allocateBlockNumber(partition_id, zookeeper);
|
||||
block_number_lock->unlock();
|
||||
right = block_number_lock->getNumber();
|
||||
block_number_lock->unlock();
|
||||
mutation_version = queue.getCurrentMutationVersion(partition_id, right);
|
||||
}
|
||||
|
||||
|
@ -109,6 +109,7 @@ DROP TABLE test.src;
|
||||
-- do not wait other replicas to execute OPTIMIZE
|
||||
SET replication_alter_partitions_sync=0, optimize_throw_if_noop=1;
|
||||
SELECT count(), sum(d), uniqExact(_part) FROM test.dst_r1;
|
||||
SYSTEM SYNC REPLICA test.dst_r1;
|
||||
OPTIMIZE TABLE test.dst_r1 PARTITION 1;
|
||||
SET replication_alter_partitions_sync=1;
|
||||
SYSTEM SYNC REPLICA test.dst_r1;
|
||||
|
Loading…
Reference in New Issue
Block a user