-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Bugfix(Vec)] Fix some memory leak issues #9824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
HappenLee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
Fix another case: |
|
hi @amosbird , please rebase master to fix BE ut bug. |
morningman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
Problem Summary:
Fix some memory leak issues in vectorized engine.
Checklist(Required)
Further comments
The following leak issues are catched by running stress tests with tpch queries.
HashJoinNodedoesn't close owned expression contexts.VExprContextdoesn't free owned function contexts.AggregationNodedoesn't close owned aggregate_evaluators. Also it might fail to close properly.VExchangeNodedoesn't close owned vsort_exec_exprs.VSortNodedoesn't return error code if close fails.There is also a related fix proposed in #9820 whose implementation differs from
ExprContext. I think deallocation suits better inside d'tor, which is more consistent.