Merge pull request #67935 from ClickHouse/davenger_patch_42

Add keeper error description to the message
This commit is contained in:
Alexander Gololobov 2024-08-16 20:42:15 +00:00 committed by GitHub
commit 967d237ba6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -800,7 +800,8 @@ void StorageReplicatedMergeTree::createNewZooKeeperNodes()
{
auto res = future.get();
if (res.error != Coordination::Error::ZOK && res.error != Coordination::Error::ZNODEEXISTS)
throw Coordination::Exception(res.error, "Failed to create new nodes {} at {}", res.path_created, zookeeper_path);
throw Coordination::Exception(res.error, "Failed to create new nodes {} at {} with error {}",
res.path_created, zookeeper_path, Coordination::errorMessage(res.error));
}
}