From b9568dc4c0185687802875a1418b674db192b549 Mon Sep 17 00:00:00 2001 From: Schrodinger ZHU Yifan Date: Mon, 10 Jan 2022 17:50:36 +0800 Subject: [PATCH] add a log for DGB Invoker Signed-off-by: Schrodinger ZHU Yifan --- dbms/src/Server/Server.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dbms/src/Server/Server.cpp b/dbms/src/Server/Server.cpp index c36cb87fd15..9dcc50de892 100644 --- a/dbms/src/Server/Server.cpp +++ b/dbms/src/Server/Server.cpp @@ -1229,6 +1229,12 @@ int Server::main(const std::vector & /*args*/) settings.elastic_threadpool_init_cap, std::chrono::milliseconds(settings.elastic_threadpool_shrink_period_ms)); + // check debug invoker + if (global_context->getSettingsRef().enable_debug_invoker) + { + LOG_FMT_WARNING(log, "!!!DANGEROUS!!! DBG Invoker is enabled, please keep it disabled in production env."); + } + /// Then, startup grpc server to serve raft and/or flash services. FlashGrpcServerHolder flash_grpc_server_holder(*this, raft_config, log);