From 62b9b039cd1ab518daa725d9fb72eafbc4a38380 Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 22 Aug 2018 17:25:30 +0300 Subject: [PATCH] change exception --- dbms/src/Storages/StorageReplicatedMergeTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Storages/StorageReplicatedMergeTree.cpp b/dbms/src/Storages/StorageReplicatedMergeTree.cpp index c8d7bf81fc7..34044bd71a6 100644 --- a/dbms/src/Storages/StorageReplicatedMergeTree.cpp +++ b/dbms/src/Storages/StorageReplicatedMergeTree.cpp @@ -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");