This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-4.0-preview in repository https://gitbox.apache.org/repos/asf/doris.git
commit 0cf1dc04320ae7c5d81da632046ed4dd59454651 Author: Luwei <814383...@qq.com> AuthorDate: Wed Apr 10 22:10:10 2024 +0800 [fix](merge-cloud) add detail err msg for meta check (#33499) --- cloud/src/recycler/meta_checker.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cloud/src/recycler/meta_checker.cpp b/cloud/src/recycler/meta_checker.cpp index ed54de88b40..b1ea0f9f8e4 100644 --- a/cloud/src/recycler/meta_checker.cpp +++ b/cloud/src/recycler/meta_checker.cpp @@ -394,15 +394,17 @@ void MetaChecker::do_check(const std::string& host, const std::string& port, MYSQL* conn; conn = mysql_init(nullptr); if (!conn) { - msg = "mysql init failed"; - LOG(WARNING) << msg; + msg = "mysql init failed "; + LOG(WARNING) << msg << mysql_error(conn) << " host " << host << " port " << port << " user " + << user << " password " << password << " instance_id " << instance_id; return; } conn = mysql_real_connect(conn, host.c_str(), user.c_str(), password.c_str(), "", stol(port), nullptr, 0); if (!conn) { - msg = "mysql init failed"; - LOG(WARNING) << msg; + msg = "mysql init failed "; + LOG(WARNING) << msg << mysql_error(conn) << " host " << host << " port " << port << " user " + << user << " password " << password << " instance_id " << instance_id; return; } LOG(INFO) << "mysql conn succ "; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org