From 42c358aa3c3289f58774219d0b78d10cc2fc0f09 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 14 Aug 2022 01:47:36 +0200 Subject: [PATCH] Add warning message --- programs/server/Server.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/programs/server/Server.cpp b/programs/server/Server.cpp index 21bf7ee4355..f891d04fe51 100644 --- a/programs/server/Server.cpp +++ b/programs/server/Server.cpp @@ -623,6 +623,13 @@ static void sanityChecks(Server & server) if (!enoughSpaceInDirectory(logs_parent, 1ull << 30)) server.context()->addWarningMessage("Available disk space for logs at server startup is too low (1GiB): " + String(logs_parent)); } + + if (server.context()->getMergeTreeSettings().allow_remote_fs_zero_copy_replication) + { + server.context()->addWarningMessage("The setting 'allow_remote_fs_zero_copy_replication' is enabled for MergeTree tables." + " But the feature of 'zero-copy replication' is under development and is not ready for production." + " The usage of this feature can lead to data corruption and loss. The setting should be disabled in production."); + } } catch (...) {