mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
change exception
This commit is contained in:
parent
623c6e0553
commit
62b9b039cd
@ -1996,7 +1996,7 @@ void StorageReplicatedMergeTree::cloneReplica(const String & source_replica, zku
|
||||
if (error == ZooKeeperImpl::ZooKeeper::ZBADVERSION)
|
||||
throw Exception("Can not clone replica, because a source replica is lost", ErrorCodes::SOURCE_REPLICA_IS_LOST);
|
||||
else if (error == ZooKeeperImpl::ZooKeeper::ZNODEEXISTS)
|
||||
throw Exception("Replica changed version");
|
||||
throw Exception("ClickHouse server updated to new version", ErrorCodes::UPDATE_CH);
|
||||
else if (error != ZooKeeperImpl::ZooKeeper::ZOK)
|
||||
throw ("cloneReplica() failed");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user