This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 5ca19c4b790 [fix](merge-cloud) add detail err msg for meta check
(#33499)
5ca19c4b790 is described below
commit 5ca19c4b790d39c4952d9647ce9c49d08b51c844
Author: Luwei <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]