This is an automated email from the ASF dual-hosted git repository.

lingmiao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e42c4a  [Bug] Fix bug that BE crash when doing some queries (#3918)
1e42c4a is described below

commit 1e42c4adb7609d9a387877e606cb362f25f69d52
Author: Mingyu Chen <[email protected]>
AuthorDate: Sun Jun 21 15:25:15 2020 +0800

    [Bug] Fix bug that BE crash when doing some queries (#3918)
    
    This bug is introduced by PR #3872
    
    In that PR, I removed the obj_pool param of the RuntimeProfile constructor.
    So the first param is std::string.
    But in DataStreamRecv, it accidentally pass a nullptr to std::string, it 
compiles
    OK but will cause runtime error.
    
    Fix #3917
---
 be/src/runtime/data_stream_recvr.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/runtime/data_stream_recvr.cc 
b/be/src/runtime/data_stream_recvr.cc
index 8a4b9d3..b2efb0c 100644
--- a/be/src/runtime/data_stream_recvr.cc
+++ b/be/src/runtime/data_stream_recvr.cc
@@ -361,7 +361,7 @@ DataStreamRecvr::DataStreamRecvr(
             _is_merging(is_merging),
             _num_buffered_bytes(0),
             _sub_plan_query_statistics_recvr(sub_plan_query_statistics_recvr) {
-    _profile.reset(new RuntimeProfile(nullptr, "DataStreamRecvr"));
+    _profile.reset(new RuntimeProfile("DataStreamRecvr"));
     profile->add_child(_profile.get(), true, nullptr);
 
     // TODO: Now the parent tracker may cause problem when we need spill to 
disk, so we


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to