Skip to content

Conversation

@morningman
Copy link
Contributor

Proposed changes

After PR: #4135, If a mem tracker has parent, it should be created by 'CreateTracker'.
So I removed other unused constructors.

And also fix the bug described in #4344

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Code refactor (Modify the code structure, format the code, etc...)

Checklist

… usage

If a mem tracker has parent, it should be created by 'CreateTracker'.
So I removed other unused contructors.
@morningman morningman added kind/fix Categorizes issue or PR as related to a bug. area/spark-load Issues or PRs related to the spark load branch-0.13 PR which need to merge to branch 0.13 labels Aug 12, 2020
@morningman morningman self-assigned this Aug 12, 2020
/// TODO(cmy): this method is not used for now. the memtracker returned from here is
/// got from a shared_ptr in `pool_to_mem_trackers_`.
/// I don't know why it need to return a raw pointer.
/// If this method be further used, please notice that.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetRequestPoolMemTracker is from
https://github.com/cloudera/Impala/blob/495397101e5807c701df71ea288f4815d69c2c8a/be/src/runtime/mem-tracker.h#L497
So we didn't make it shared last time, just Ieave it as it is. Maybe we could return shared ptr, I think there should be no problem.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, since this function has not been used yet, I will change the return value to shared_ptr

Copy link
Contributor

@EmmyMiao87 EmmyMiao87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morningman morningman added the approved Indicates a PR has been approved by one committer. label Aug 17, 2020
@morningman morningman merged commit e251080 into apache:master Aug 18, 2020
acelyc111 pushed a commit to acelyc111/incubator-doris that referenced this pull request Aug 21, 2020
…g usage (apache#4345)

After PR: apache#4135, If a mem tracker has parent, it should be created by 'CreateTracker'.
So I removed other unused constructors.

And also fix the bug described in apache#4344
wangbo pushed a commit to wangbo/incubator-doris that referenced this pull request Sep 2, 2020
…g usage (apache#4345)

After PR: apache#4135, If a mem tracker has parent, it should be created by 'CreateTracker'.
So I removed other unused constructors.

And also fix the bug described in apache#4344
wangbo pushed a commit to wangbo/incubator-doris that referenced this pull request Sep 2, 2020
…g usage (apache#4345)

After PR: apache#4135, If a mem tracker has parent, it should be created by 'CreateTracker'.
So I removed other unused constructors.

And also fix the bug described in apache#4344
@yangzhg yangzhg mentioned this pull request Feb 9, 2021
csun5285 pushed a commit to csun5285/doris that referenced this pull request Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/spark-load Issues or PRs related to the spark load branch-0.13 PR which need to merge to branch 0.13 kind/fix Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]BE crash when doing LOADING phase of spark load

4 participants