You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/09/07 02:10:58 UTC
[doris] branch master updated: [Enhancement](log) improve error msg for delta writer fail (#12121) (#12360)
This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 445f0882d1 [Enhancement](log) improve error msg for delta writer fail (#12121) (#12360)
445f0882d1 is described below
commit 445f0882d1516a61c2dee7bef813300ef474849c
Author: zhengyu <fr...@gmail.com>
AuthorDate: Wed Sep 7 10:10:51 2022 +0800
[Enhancement](log) improve error msg for delta writer fail (#12121) (#12360)
Signed-off-by: freemandealer <fr...@gmail.com>
Signed-off-by: freemandealer <fr...@gmail.com>
---
be/src/runtime/tablets_channel.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/be/src/runtime/tablets_channel.cpp b/be/src/runtime/tablets_channel.cpp
index a33bd21db7..0681a350fa 100644
--- a/be/src/runtime/tablets_channel.cpp
+++ b/be/src/runtime/tablets_channel.cpp
@@ -375,8 +375,10 @@ Status TabletsChannel::add_batch(const TabletWriterAddRequest& request,
Status st = tablet_writer_it->second->write(&send_data, tablet_to_rowidxs_it.second);
if (!st.ok()) {
auto err_msg = strings::Substitute(
- "tablet writer write failed, tablet_id=$0, txn_id=$1, err=$2",
- tablet_to_rowidxs_it.first, _txn_id, st.code());
+ "tablet writer write failed, tablet_id=$0, txn_id=$1, err=$2"
+ ", errcode=$3, msg:$4",
+ tablet_to_rowidxs_it.first, _txn_id, st.code(), st.precise_code(),
+ st.get_error_msg());
LOG(WARNING) << err_msg;
PTabletError* error = tablet_errors->Add();
error->set_tablet_id(tablet_to_rowidxs_it.first);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org