You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/09/15 00:15:00 UTC

[jira] [Commented] (IMPALA-11557) Memory leak in BlockingRowBatchQueue

    [ https://issues.apache.org/jira/browse/IMPALA-11557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17605010#comment-17605010 ] 

ASF subversion and git services commented on IMPALA-11557:
----------------------------------------------------------

Commit f8eac781c17be5492d367b63e85b9e4746e5cc12 in impala's branch refs/heads/master from hexianqing
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=f8eac781c ]

IMPALA-11557: Fix memory leak in BlockingRowBatchQueue

'batch_queue_' is a pointer to store the RowBatches. It's
initialized in the constructor but not deleted in the destructor.

The way to fix in the patch is to use std::unique_ptr.

Change-Id: I656316b6575ce74a03b83fcd45e772c763835d56
Reviewed-on: http://gerrit.cloudera.org:8080/18960
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Quanlong Huang <hu...@gmail.com>


> Memory leak in BlockingRowBatchQueue
> ------------------------------------
>
>                 Key: IMPALA-11557
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11557
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 4.0.0, Impala 4.1.0
>            Reporter: Xianqing He
>            Assignee: Xianqing He
>            Priority: Major
>              Labels: memory-leak
>
> Reproduce SQL: select count(*) from tpch_pqrquet.lineitem;
> 40 Concurrent running reproduces memory leaks faster.
> Code location of memory leak: https://github.com/apache/impala/blob/17ec3a85c7e3733dacb08a9fcca83fff5ec75102/be/src/runtime/blocking-row-batch-queue.cc#L31



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org