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 <[email protected]>
AuthorDate: Wed Sep 7 10:10:51 2022 +0800
[Enhancement](log) improve error msg for delta writer fail (#12121) (#12360)
Signed-off-by: freemandealer <[email protected]>
Signed-off-by: freemandealer <[email protected]>
---
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: [email protected]
For additional commands, e-mail: [email protected]