This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 019bfc0af9e [improve](load) set load id in signal handler (#25813)
(#25862)
019bfc0af9e is described below
commit 019bfc0af9ea86fa5da6632b5d374118f482ca5b
Author: Kaijie Chen <[email protected]>
AuthorDate: Wed Oct 25 17:08:35 2023 +0800
[improve](load) set load id in signal handler (#25813) (#25862)
---
be/src/vec/sink/vtablet_sink.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/be/src/vec/sink/vtablet_sink.cpp b/be/src/vec/sink/vtablet_sink.cpp
index 975e053b5e2..88b85e24e2a 100644
--- a/be/src/vec/sink/vtablet_sink.cpp
+++ b/be/src/vec/sink/vtablet_sink.cpp
@@ -50,6 +50,7 @@
#include "common/compiler_util.h" // IWYU pragma: keep
#include "common/logging.h"
#include "common/object_pool.h"
+#include "common/signal_handler.h"
#include "common/status.h"
#include "exec/tablet_info.h"
#include "runtime/define_primitive_type.h"
@@ -339,6 +340,7 @@ Status VNodeChannel::init(RuntimeState* state) {
void VNodeChannel::open() {
SCOPED_CONSUME_MEM_TRACKER(_node_channel_tracker.get());
+ signal::set_signal_task_id(_parent->_load_id);
PTabletWriterOpenRequest request;
request.set_allocated_id(&_parent->_load_id);
request.set_index_id(_index_channel->_index_id);
@@ -696,6 +698,7 @@ void VNodeChannel::try_send_block(RuntimeState* state) {
SCOPED_ATTACH_TASK(state);
SCOPED_CONSUME_MEM_TRACKER(_node_channel_tracker);
SCOPED_ATOMIC_TIMER(&_actual_consume_ns);
+ signal::set_signal_task_id(_parent->_load_id);
AddBlockReq send_block;
{
debug::ScopedTSANIgnoreReadsAndWrites ignore_tsan;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]